Am 09.08.2012 17:49, schrieb Jonas Maebe:
It's not "my style of programming". I've never used resourcestrings in
my life (because I've never worked on a multilingual program, not
because I've used something else instead).
The compiler is a multilingual program and uses a different mechanism
th
Rainer Stratmann wrote on Thu, 09 Aug 2012:
Am Thursday 09 August 2012 17:18:09 schrieb Jonas Maebe:
I would really recommend you (again) to use resourcestrings.
You say that is not possible and that is not possible (or someone
can say: you don't want to go deep in it).
You noticed yours
Am Thursday 09 August 2012 17:18:09 schrieb Jonas Maebe:
> I would really recommend you (again) to use resourcestrings.
You say that is not possible and that is not possible (or someone can say: you
don't want to go deep in it).
Beyond that you recommend me your style of programming.
I see ever
Rainer Stratmann wrote on Thu, 09 Aug 2012:
Am Thursday 09 August 2012 17:09:57 schrieb Jonas Maebe:
if it were added it would be
quite possible that this would also disable inlining the containing
routine for implementation reasons.
I think the reason for disabling is that in the asm code c
Am Thursday 09 August 2012 17:09:57 schrieb Jonas Maebe:
> if it were added it would be
> quite possible that this would also disable inlining the containing
> routine for implementation reasons.
I think the reason for disabling is that in the asm code can be identifyers
and jumplabels which are
Rainer Stratmann wrote on Thu, 09 Aug 2012:
If you have a label in a procedure and declare this procedure as inline
procedure then it gives also problems (Fatal: compilation aborted!).
That is the generic error message that is shown at the end of every
failed compilation. I guess you mean t
Hi,
On 08/ 9/12 05:08 PM, Rainer Stratmann wrote:
Just because it sounds that way: is it possible inside the procedure?
Yes, if the label declaration is also inside the procedure. You can
only take the address of a globally declared label iff
a) the label is also defined in the global scope ("b
Rainer Stratmann wrote on Thu, 09 Aug 2012:
To avoid disabling procedure/function inlining when the compiler finds an asm
instruction it would be good to have at least the mentioned former
inline( $AB, $CD , $EF , ... );
back.
Is that possible?
There are no plans to do so, and even if it w
Am Thursday 09 August 2012 16:52:40 schrieb Jonas Maebe:
> Sven Barth wrote on Thu, 09 Aug 2012:
> > Am 09.08.2012 15:35, schrieb Jonas Maebe:
> >> Rainer Stratmann wrote on Thu, 09 Aug 2012:
> >>> Is it possible to get the adress of a label in a procedure?
> >>
> >> Not outside that procedure, no.
Am Thursday 09 August 2012 15:51:10 schrieb Jonas Maebe:
> The idea is to use the macro instead of a function call, not to use
> the macro inside a function that you then try to inline. A macro is
> just text substitution, it will never have a different effect than
> typing its contents directly at
Sven Barth wrote on Thu, 09 Aug 2012:
Am 09.08.2012 15:35, schrieb Jonas Maebe:
Rainer Stratmann wrote on Thu, 09 Aug 2012:
Is it possible to get the adress of a label in a procedure?
Not outside that procedure, no.
Just because it sounds that way: is it possible inside the procedure?
Am 09.08.2012 15:35, schrieb Jonas Maebe:
Rainer Stratmann wrote on Thu, 09 Aug 2012:
Is it possible to get the adress of a label in a procedure?
Not outside that procedure, no.
Just because it sounds that way: is it possible inside the procedure?
Regards,
Sven
__
Rainer Stratmann wrote on Thu, 09 Aug 2012:
Am Thursday 09 August 2012 15:33:52 schrieb Jonas Maebe:
> Thanks, the next problem then is: I wanted to do that in an inline
> procedure but if the compiler detects an asm statement then inline is
> disabled(!).
That's correct, it is not possible i
Rainer Stratmann wrote on Thu, 09 Aug 2012:
Am Thursday 09 August 2012 15:35:54 schrieb Jonas Maebe:
Rainer Stratmann wrote on Thu, 09 Aug 2012:
> Is it possible to get the adress of a label in a procedure?
Not outside that procedure, no.
Would it be possible to chage it, to get this inform
Am Thursday 09 August 2012 15:35:54 schrieb Jonas Maebe:
> Rainer Stratmann wrote on Thu, 09 Aug 2012:
> > Is it possible to get the adress of a label in a procedure?
>
> Not outside that procedure, no.
Would it be possible to chage it, to get this information?
May be it is only some kind of acci
Am Thursday 09 August 2012 15:33:52 schrieb Jonas Maebe:
> > Thanks, the next problem then is: I wanted to do that in an inline
> > procedure but if the compiler detects an asm statement then inline is
> > disabled(!).
>
> That's correct, it is not possible inline assembler statements in FPC.
> You
Rainer Stratmann wrote on Thu, 09 Aug 2012:
Is it possible to get the adress of a label in a procedure?
Not outside that procedure, no.
Jonas
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/
Rainer Stratmann wrote on Thu, 09 Aug 2012:
Am Thursday 09 August 2012 15:14:29 schrieb Jonas Maebe:
{$asmmode att}
asm
.byte $0x1f, $0xef, $0x1a
end;
I made an error here, the "$" should be removed (see Thomas' mail)
{$asmmode intel}
asm
db $1a, $ef, $1a
end;
Thanks, the next prob
On 09/08/12 14:25, Rainer Stratmann wrote:
> Am Thursday 09 August 2012 15:14:29 schrieb Jonas Maebe:
>> Rainer Stratmann wrote on Thu, 09 Aug 2012:
>>> How is it possible to put some inline bytes in the code like the former
>>> inline( $1f , $ef , $1A );
>>> instruction?
>>
>> {$asmmode att}
>> as
Is it possible to get the adress of a label in a procedure?
label mark1;
procedure s;
begin
mark1:
end;
var p : pointer;
begin
p := @mark1; // does not work;
end;
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.
Am Thursday 09 August 2012 15:14:29 schrieb Jonas Maebe:
> Rainer Stratmann wrote on Thu, 09 Aug 2012:
> > How is it possible to put some inline bytes in the code like the former
> > inline( $1f , $ef , $1A );
> > instruction?
>
> {$asmmode att}
> asm
>.byte $0x1f, $0xef, $0x1a
> end;
>
> {$asm
Hi,
On 08/ 9/12 03:09 PM, Rainer Stratmann wrote:
How is it possible to put some inline bytes in the code like the former
inline( $1f , $ef , $1A );
instruction?
Not sure if it is the official way, but the following works:
with {$asmmode att}
asm
.byte 0x1f, 0xef, 0x1a
end;
and with {$asm
Rainer Stratmann wrote on Thu, 09 Aug 2012:
How is it possible to put some inline bytes in the code like the former
inline( $1f , $ef , $1A );
instruction?
{$asmmode att}
asm
.byte $0x1f, $0xef, $0x1a
end;
{$asmmode intel}
asm
db $1a, $ef, $1a
end;
If this is supposed to be the only cod
How is it possible to put some inline bytes in the code like the former
inline( $1f , $ef , $1A );
instruction?
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
24 matches
Mail list logo