LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-27-2006, 04:26 AM   #1
syseeker
Member
 
Registered: Aug 2003
Posts: 66

Rep: Reputation: 15
where defined(__i386) is being defined??


I often saw this in some config header file. But wonder where and how __i386 is being defined. I made a grep in the project folder, but nothing shown to be doing some thing like #define __i386. Where is it being defined? I thought that variable with __ is always system variable, but which system file actually define this?

#if defined(__i386)
#define LITTLE_ENDIAN
#endif

regards,
Jo
 
Old 06-27-2006, 06:24 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I believe, but I'm not completely sure, that the __i386 is defined by the compiler when you build on an architecture that is compatible with i386.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
__libc_stack_end not defined??? 7.e.Q Linux From Scratch 7 02-09-2006 12:28 AM
where is PATH defined for all users? true_atlantis Linux - Newbie 7 09-02-2005 10:33 AM
user defined variables linuxdev Linux - Newbie 4 02-09-2004 12:43 PM
When and how is $HOME defined? bikergirl Linux - General 2 08-22-2003 09:24 PM
No Mountpoints defined Zvezda Linux - General 0 12-22-2001 11:54 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:13 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration