[fpc-devel] Internal assembler: tai_directive usage

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Nov 9 11:59:20 CET 2009


On 09 Nov 2009, at 11:50, dmitry boyarintsev wrote:

> The internal assembler seems to ignore any kind of assembler  
> directives.
> For darwin asm, some directives are macros to declare a new section.
> I.e. asd_non_lazy_symbol_pointer, starts are new section for  
> indirect symbols.

The main reason is that I added these directives without any knowledge  
of what they actually do at the object level. I just read the  
assembler manual, saw the syntax and added them (which is very  
convenient, and one of the reasons why I'm not a big fan of an  
internal assembler unless it's really required).

> Would it be correct to replace directives, with a proper Tai_section
> element, like in the example below?
> Or is there any other proper way?

If some of these directives simply create a new section, then the  
directives can be removed and everywhere they are currently used in  
the compiler you can create the appropriate section instead (you can  
submit this in a separate patch).


Jonas



More information about the fpc-devel mailing list