Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

c code in fortran project

lklawrie
Beginner
2,481 Views

Apparently, in Linux and Mac versions of Intel Fortran, one can just include c code into the "make" files for the project. And it gets automatically compiled.

Is there anyway to do something similar in Windows from the IDE approach?

Linda

0 Kudos
21 Replies
Steve_Nuchia
New Contributor I
244 Views

I was hoping somebody else would jump in, but what the heck. BYTESWAP8, to the best of my knowledge, does nothing in standard C because it isn't defined there. Searching for it with Google leads me to suspect it is commonly a macro (preprocessor pseudo-function) that reverses the order of the bytes in an eight-byte word.

The reason you'd want to do this is if you have a binary data interchange format (file or network packet) that needs to interoperate between big-endian and little-endian machines. http://en.wikipedia.org/wiki/Endianness

0 Kudos
Reply