[futurebasic] Re: [FB] Beginners Corner

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2010 : Group Archive : Group : All Groups

From: Alain Pastor <apastor@...>
Date: Sun, 17 Jan 2010 21:53:44 +0100
Le 17/01/10 21:28, Michele Neri a écrit :
> 2010/1/17 Alain Pastor <apastor@... <mailto:apastor@...>>
>
>
>     Hi Brian,
>
>     Thanks for the info. I was not aware of that change, perhaps I
>     should pay a visit to the new Reference manual.
>     Do you mean there's no more register variables with FB5?
>
>
> The gcc compiler choices when a variable could be placed in register
> analyzing the user code. If the user's source code depends on variable's
> address the compiler automatically use memory instead of register.
>
> gcc has a register statement to manually put the variable in register
> but I don't think that we really need to override the standard behaviour
> of a modern compiler.
>

Hello Michele,

Thank you for this additional info. Perhaps this valuable feature should 
be mentioned somewhere in the documentation although using the @ symbol 
with the dim statement appears to be harmless. I can't seem to find 
anything about it in the FBtoC documentation.

Cheers,

Alain