[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
machine label.
- Date: 19 Nov 2002 11:57:04 +0100
- From: corsepiu at faw.uni-ulm.de (Ralf Corsepius)
- Subject: machine label.
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?
architecture/cpu?
cpu-variant?
OS?
uname?
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).
Ralf