Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Far Calls required 2

Status
Not open for further replies.

MatthewPeters

Technical User
Aug 13, 2001
81
US
I receive the following warning message:

Far Calls required (use /F command line option)

when I compile a script. My question is what is a
Far Call? I haven't been able to fine any information
about Far Calls in the manual or help files. They only
list it as one of the warning messages but give no
details about it. The script executes correctly, I would
just like to know what this is.

Thanks for any help

Matt
 
If your .was file gets "large", the ASPECT compiler changes its compilation somwhat. You can remove the warning by forcing the ASPECT compiler to use the /F flag all the time. To do this, bring up the ASPECT Editor, select the Tools | Compiler Options menu item, and add /F to the Additional Options and Macro Definition (saved) edit field.

Here is some detailed info from the developer of ASPECT on what the /F flag does:

The /F option generates 4-byte procedure and function addresses as opposed to 2-byte addresses. Thus /F requires each procedure/function call to fetch an additional two bytes from the .WAX file to determine the target location.
This overhead translates into greater .WAX file sizes as well as a slight performance degradation. The fact that ASPECT is an interpreted language (i.e. not compiled to native CPU code bytes), and that it shares execution
time on the same thread as the rest of Procomm, is probably more significant than any decline in performance, except in the most unusual cases. In fact, I had thought more than once about making /F ("far calls") the default and
providing a "near call" command line option instead. Also, the warning is issued by the compiler is not something the user really needs to worry about. It causes the compiler to repeat a pass through the source, and the overall compilation to take a bit longer, but that's it. There are no other concerns or side-effects to worry about.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top