machine label.

Ralf Corsepius corsepiu at
Tue Nov 19 10:57:04 UTC 2002

Am Die, 2002-11-19 um 04.21 schrieb Chris Johns:
> Hello,
> Does a define exist that describes the "machine" ?
What do you mean by "machine", here? 


There exist several defines and variables in RTEMS which could be used
for such purposes.

> This is for the global "extern char machine[];" that is found on FreeBSD boxes.
This doesn't exist in RTEMS ;)

>  I 
> have found PACKAGE_VERSION" for the version,
Don't use this one - It is autoconf adding it per configure script (In
autoconf terms each configure script sets up a "PACKAGE")

>  and ostype is set to "RTEMS".

Do you want to destinguish RTEMS from other OSes? 
Then you could use __rtems__ (defined by gcc).


More information about the users mailing list