__declspec vs __attribute__

__declspec vs __attribute__

What's the difference between __declspec and __attribute__ directives when ensuring that a function/variable is visible on the coprocessor? 

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Nothing.  __attribute__ is Linux syntax; __declspec is the Windows syntax and the only form the Intel C++ compiler for Windows accepts; however, the Intel C/C++ compiler for Linux accepts both.

Thanks Kevin!

Leave a Comment

Please sign in to add a comment. Not a member? Join today