LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-27-2009, 04:54 AM   #1
vijaygj
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
using xmmintrin.h in ubuntu


hi,
I am working on inline assembly coding for which I need to use xmmintrin.h file.
But this file require variable called 'SSE' which is hardware feature provided by processor.
I am using Core 2 duo processor.

Header file has following code,

#ifndef __SSE__
# error "SSE instruction set not enabled"
#else

Now I want to know how I can enable SSE instruction set on Ubuntu.


Thanks in advance,
Vijay.
 
Old 07-24-2010, 11:32 PM   #2
kbensema
LQ Newbie
 
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
g++ enable sse

Vijay:

I'm assuming you're using gcc or g++. To enable intrinsics add the command-line option -msse -mmmx -msse2 to enable SSE, MMX, and SSE2 intrinsics respectively.

e.g.
gcc -o program -msse -mmmx -msse2 sourcefile.c

-Kevin
 
  


Reply

Tags
assembly, inline


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Simple Guide How to Upgrade Ubuntu 8.04 (Hardy Heron) to Ubuntu 8.10 (Intrepid LXer Syndicated Linux News 0 10-31-2008 10:50 AM
LXer: Installing Xen On An Ubuntu 8.04 (Hardy Heron) Server From The Ubuntu Repositor LXer Syndicated Linux News 0 05-08-2008 02:10 PM
xmmintrin.h SSE not enabled slackware 12.0 and audacity xaos5 Slackware 3 01-17-2008 06:25 PM
aftr sudo cmd and pswd i get this E: Type 'http://archive.ubuntu.com/ubuntu' is not k turoblaztr Linux - General 1 01-14-2007 10:29 AM


All times are GMT -5. The time now is 10:55 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration