canonical list of port-specific CPP symbols
Hi,
Is there a canonical list of symbols defined by each of the
Debian architectures, e.g. do I test for Sparc using
__sparc or __sparc__ ? How about m68k, hppa, etc?
My first guess was that would be contained on [url]http://ports.debian.org/[/url]
but no such luck.
Thanks,
-Steve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFJGTK60i2bPSHbMcURAlD9AKCSZu7GKt9pgTHOkDzHl8c4LUKyLACcC1be
7Whl1SC7g9PBKZTSvcvYavU=
=ApqP
-----END PGP SIGNATURE-----
Re: canonical list of port-specific CPP symbols
On Tue, 2008-11-11 at 01:22 -0600, Steve M. Robbins wrote:[color=blue]
> Hi,
>
> Is there a canonical list of symbols defined by each of the
> Debian architectures, e.g. do I test for Sparc using
> __sparc or __sparc__ ? How about m68k, hppa, etc?
>
> My first guess was that would be contained on [url]http://ports.debian.org/[/url]
> but no such luck.[/color]
GCC will define __arch, __arch__, and if you don't use -ansi or -std=
then the arch name by itself. (One more reason why you should use those
options.) The architecture names probably aren't all the same as dpkg
uses.
This might be a useful addition to
[url]http://wiki.debian.org/ArchitectureSpecificsMemo[/url]
Ben.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQBJGXuK79ZNCRIGYgcRAsImAKCL3hv2Z5lzYAKLwh4c8PcUxnB++wCff8Nr
UV8SaKLnFpAVMV0OmY0UUnU=
=wAz2
-----END PGP SIGNATURE-----
Re: canonical list of port-specific CPP symbols
"Steve M. Robbins" <steve@sumost.ca> writes:
[color=blue]
> Is there a canonical list of symbols defined by each of the
> Debian architectures, e.g. do I test for Sparc using
> __sparc or __sparc__ ? How about m68k, hppa, etc?[/color]
It's not Debian-specific, but the website at
[url]http://predef.sourceforge.net/[/url]
is very useful.
--
"It was then I realized how dire my medical situation was. Here I was,
a network admin, unable to leave, and here was someone with a broken
network. And they didn't ask me to fix it. They didn't even try to
casually pry a hint out of me." --Ryan Tucker in the Monastery
--
To UNSUBSCRIBE, email to [email]debian-devel-REQUEST@lists.debian.org[/email]
with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]