constants in data section
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
ppc386 puts constants in data section, when they actually could be in code section. Because a multiple processes have one data section per process and single shared code section, it would be optimal to store them there. There is another reason too: because code section is read-only, user code cannot accidentially overwrite the constants value.
I tested it on 1.0.10, but I think 1.9.4 had the same symptoms.
Delphi does use .code section for such constants.
Additional information:
Reporter: Vahur Sinijärv
EMail: vahur dot sinijarv at juju dot ee
Mantis conversion info:
- Mantis ID: 5251
- OS: Win32
- Version: 1.0.10
- Fixed in version: 1.9.5