Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29009 Discussions

Placing compiler directives in source code

schulzey
New Contributor I
756 Views

I need to use the compiler directive "assume:byterecl" for just one of my source files. Is there any way I can place it in the source code for that file rather than as a command line option in my VS project? I apologise in advance if this is a dumb question.

0 Kudos
3 Replies
andrew_4619
Honored Contributor III
756 Views

I don't think there is a compiler directive for that but I may be wrong.In Visual Studio (if you use that) you can right click on a specuifc source file in solution explorer and customise compiler options for that specific file if that helps.

 

0 Kudos
schulzey
New Contributor I
756 Views

I have been doing what you suggested but I'd rather put it in the source code if possible.

0 Kudos
Kevin_D_Intel
Employee
756 Views

There is no directive equivalent (Equivalent Compiler Options) available but try the OPTIONS statement. You can insert a statement like this:

OPTIONS /assume:byterecl

 

0 Kudos
Reply