Jason Lindquist (jlindquist) wrote,
Jason Lindquist
jlindquist

C Preprocessor predefined macros

I did some work on a Solaris driver on the Sparc architecture, and now I need to move it over to x86. A couple of memory operations are different, and I'd prefer to handle them automatically, without requiring a -D flag on the compile line.

With gcc, you want cpp -dM < /dev/null. With Sun's tools, you need a foo.c that contains a simple program (something with a main() function which does nothing but return 0.) Then you run CC -xdumpmacros foo.c
Subscribe

  • Aurora reference

    For reference, the only two links I could find on Aurora shooter (and Westview '06 grad) James Holmes, prior to his attendance at Westview being…

  • Your friend, FunnyJunk.com

    If you've never heard of funnyjunk.com, it's run by a content thief. It's a haven for incompetence, stupidity, and douchebaggery. Site owner…

  • X-header crap

    It is ridiculous how big this section of my .muttrc has gotten. Every goddamned special snowflake mailer has to have its own collection of…

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments