Sign in Join

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

Mailing lists / fpc-devel / 2007-01

Re: Nasm under FPC Go32v2

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Unknown author
The file you are changing is not go32v2 specific, thus if a change is only for the go32v2 target, we need to add a target test for the given change.

I think it is for all the platforms where a port of Nasm is available other than Dos, for example Linux though I have not tested. Anyway at the present moment compiling with Nasm is impossible except for such programs which do not need to write on the screen.

Is this a general or go32v2 limitation of NASM?

I have taked as a comparison the equivalent file for Gas aggas.pas where I found the comment {$warning TODO .rodata not yet working}
so I think that internal routines of FPC do not support the addressing of read-only section.

The problem is that very long line have problems with editors (like fp for instance...) that is why the splitting > was introduced, I don't understand the advantage of > removing that.

Because I do not be sure to be able to fix the bug working in multi-line, so in the first instance I simplified in a single.

Why is this glbal modifier needed?

In the assembler source generated by Gas it is present, actually I tried to recompile the FPC with global modifier only that do not work and both global and .rodata->.data that work, but not with .rodata->.data only.

Could you please explain the reason of that change?

It seems to me with the old while statement if two sections are consecutive, only the last will be written in the cutobject.

Greetings, Marco.

------------------------------------------------------ Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom http://click.libero.it/infostrada02gen07

Reply by email

Jonas Maebe
to Unknown author
Show quoted text 5 lines
I have taked as a comparison the equivalent file for Gas aggas.pas where I found the comment {$warning TODO .rodata not yet working} so I think that internal routines of FPC do not support the addressing of read-only section.

No, that comment is wrong nowadays. In the past there were some bugs, e.g. ansistrings reducing the reference count of constant ansistrings and things like that. But rodata has been active and working fine for several months already on both PowerPC and Arm. I guess it can be activated in general, but I can't test major platforms like Windows so I won't do it.

Jonas

Reply by email