- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can someone point me to a list of compiler defined macros that are present for NIOS2? I was hoping to use something like gcc's __TIMESTAMP__, but that doesn't work and I'm not sure if something similar exists that I can use.
Much thanks, --timLink Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The compiler is gcc, there is a 'magic' incantation to get the predefined macros preinted (but I can't remember off hand what it is).
You might be looking for __DATE__ and __TIME__ which are part of the C standard.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The expansions generated by the C pre-processor are output by:
cpp -dM /dev/null but this seems to exclude __DATE__ __TIME__ __FILE__ __FUNCTION__ etc.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
dsl,
Thanks a bunch for the pointer. I guess I should have just tried __DATE__ and __TIME__ in the first place. I was kinda hoping if they were documented I'd find some other useful tidbits that I might be able to use as well. Thanks again, --tim
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page