- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there, I have an assembler file as part of my project that contains both ia32 and intel64 assembler code, separated by guard statements:
#ifdef __i386
and:
#ifdef __x86_64
I am able to compile this code successfully using GCC under Linux and GCC and LLVM (Xcode 4.2.1) under Mac OS X. I am investigating the Intel C++ compiler but it appears unable to compile (assemble) this file as no manifest constants are defined by the compiler (as evidenced by using the -dM compiler flag) and it therefore sees assembler instructions for the wrong architecture. The manpage for icc doesn't state support for .S files (it does for .s files).
How can I get my .S files compiled by the Intel compilers?
Cheers,
Andy
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please try the following option to ICC:
-x assembler-with-cpp ...
You may still need to include definitions for manifest constants in the command line.
-x assembler-with-cpp
You may still need to include definitions for manifest constants in the command line.

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