| delorie.com/archives/browse.cgi | search |
| Date: | Mon, 14 Apr 1997 08:01:22 GMT |
| Message-Id: | <199704140801.IAA11468@bryggen.bgnett.no> |
| From: | Gisle Vanem <giva AT bgnett DOT no> |
| To: | djgpp AT delorie DOT com |
| Subject: | Using -m486 |
How can I determine if my C-source is complile using the `-m486' option.
I was thinking of using it along these lines:
inline unsigned long _htonl (unsigned x)
{
#if defined(-m486)
return bswap(x); /* 486+ instruction */
#else
return htonl(x);
#endif
}
When compiling with `gcc -V', there's no extra define for `-m486'.
Gisle V
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |