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.

How to set stack size while building in sublime text?

Yeldon_Y_
Beginner
2,598 Views

I've got this problem while I am trying to build fortran in sublime text.

 

Here is what I wrote in sublime text. It works well except for stack size. When I am trying to compile, it says

ifort: command line warning #10006: ignoring unknown option '/stack:0×1500000000'

 

Here is my code in sublime, if someone would like to help me with it.

{
  "cmd": ["cmd", "/e:on", "/v:on", "/c","ipsxe-comp-vars intel64 vs2012 && ifort  ${file} -stack:0×1500000000" ],    
    "file_regex": "^.*\\\\([0-9A-Za-z_]+\\.[A-Za-z0-9]+)\\(([0-9]+)\\):[ ]+error[ ]+#([0-9]+):[ ]+(.*)$",    
    "working_dir":"${file_path}",     
    "selector":"source.f ,source.for ,source.ftn ,source.f90 ,source.fpp ,source.i ,source.i90",  
    "encoding":"cp936",  
    "path":"C:\\Program Files (x86)\\Intel\\Composer XE 2013\\bin;${path}",
    "variants":  
      [    
           {    
              "name": "Run",   
              "cmd": ["cmd", "/e:on", "/v:on", "/c", "ipsxe-comp-vars intel64 vs2012 && ifort ${file} && ${file_base_name}"]  
              }

      ]
}

 

0 Kudos
2 Replies
JVanB
Valued Contributor II
2,598 Views

I see two possible problems. First, I think ifort needs a -link switch before the -stack:0x1500000000 switch. Also, your 0x is coming out more like 0× a multiplication operator rather than the letter x. Try to make sure that's not an issue.

 

0 Kudos
mecej4
Honored Contributor III
2,598 Views

The compiler and the linker do not use the same syntax for specifying the stack size. You can use the /link switch as Repeat Offender stated or you can use the compiler's format:

      /F<n>     set the stack reserve amount specified to the linker

 

0 Kudos
Reply