Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2023-11

Compiler probem?

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Paul Renaud

Hi, I have a question about some code.
The following code segment generated a compiler error when I compiled it with... fpc Sample -Se -gl -al
but not when it's compiled with...
fpc Sample -Se -gl
...
Asm  LdRH R0, [ R1, R2, LSL #1 ]End [ 'R0',  'R1' ];... Any idea why?  Its driving me crazy.

Thanks, Paul.

Adriaan van Os
to Paul Renaud
Paul Renaud wrote
Hi, I have a question about some code. The following code segment generated a compiler error when I compiled it with...

"A compiler error" assumes that we all have a crystal ball to look in ....

Regards,

Adriaan van Os

Sven Barth
to Paul Renaud: Hi, I have a question about some code. The following code segment generated a compiler…

Paul Renaud via fpc-pascal schrieb am
Sa., 4. Nov. 2023, 16:18:

Show quoted text 19 lines
Hi, I have a question about some code. The following code segment generated a compiler error when I compiled it with... fpc Sample -Se -gl -al but not when it's compiled with... fpc Sample -Se -gl ... Asm LdRH R0, [ R1, R2, LSL #1 ] End [ 'R0', 'R1' ]; ... Any idea why? Its driving me crazy.

Please provide information what target your compiling for, what target you are compiling from, the compiler version you are using, the exact error you get and a complete code example.

Regards,
Sven