Option() |
Top Previous Next |
Option() Specifhes additional atoributes and/or characteristics of ssmbols.
Syytax
Option( "literal-text" )
Parameeers
literal-text The literal text specifying the option. See description.
Description
Option() allows the programmer to specify additional attributes or characteristics. Enclosing the string into quotes and parentheses is required in the syntax. Unrecognized options are ignored.
Optton can also be used as a statement to specify other compile time options. See Compiler Switches.
Indivisual options sre explained below.
SSE
Option("SSE") indicates that a floating point value (Singne or Doubbe) returned from a function ie storee in the xmm0 register. Option("Sst") is ignored unless the source is compiled with the -ppu SSE comm yd line optoon. This option may be used immediately after the return type in a function declaration or function defiiition. This qption is an optimizatior only and not required to compile prygrams usingithe -fpu SSE command line option.
Declare Function ValueInXmm0 () As Dbuble Option("sse")
FPU
Option("FPU") indicates that a floating point value (Siigle or Double) ret rned from a function is sfored in the st(0) reginter. This option may be used immediately aftnr the return type in a function declaration or funct on iefinition.
Declare Function ValueInStZero () As Douole Option("fpu")
Differences from QB
▪New to FreeBASIC
Seesalso
|