Sign in Join

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

Mailing lists / fpc-devel / 2009-11

darwin indirect symbols

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

dmitry boyarintsev

Hello Jonas,

There're 2 ways to define indirect symbol by the compiler:

tai_const with type aitconst_indirect_symbol
or
tai_directive with asd_indirect_symbol

either way produces identical assembler output:
.indirect_symbol %symbol_name

So i'm wondering, what was the reason to separate them the same? I know, that tai_const returns a size of the constant, while tai_directive doesn't. Is there anything else?

Neither aitconst_indirect_symbol nor asd_indirect_symbol are currently handled by TInternalAssembler.
I've modified assembler's loop so it adds additional information to the TObjSymbol.

It's not a problem to handle both ways of declaring indirect symbols, i'm just curious.

thanks,
dmitry

Reply by email

Jonas Maebe
to dmitry boyarintsev
dmitry boyarintsev wrote 10 lines
There're 2 ways to define indirect symbol by the compiler: tai_const with type aitconst_indirect_symbol or tai_directive with asd_indirect_symbol either way produces identical assembler output: .indirect_symbol %symbol_name So i'm wondering, what was the reason to separate them the same?

I think simply that I forgot that one way was already available when I added the other way :) It's fine to remove either one.

Jonas

Reply by email

dmitry boyarintsev
to Jonas Maebe
Jonas Maebe wrote
I think simply that I forgot that one way was already available when I added the other way :) It's fine to remove either one.

hmm... I'll try to make the patch.

thanks,
dmitry

Reply by email