Thread overview | |||||
---|---|---|---|---|---|
|
June 15, 2003 switch for bss to data? | ||||
---|---|---|---|---|
| ||||
Hi, is there a compiler switch that places uninitialized data into the segment/ section for initialized data (init with zero) instead of BSS ? Regards, Mark Junker |
June 15, 2003 Re: switch for bss to data? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mark Junker | "Mark Junker" <mjs@NOSPAM.hannover.sgh-net.de> wrote in message news:8nt9nmrO8gB@hannover.sgh-net.de... > is there a compiler switch that places uninitialized data into the segment/ > section for initialized data (init with zero) instead of BSS ? No. But if you explicitly init it with 0, it will go into initialized data: int x; // BSS int y = 0; // initialized data |
June 16, 2003 Re: switch for bss to data? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | > No. But if you explicitly init it with 0, it will go into initialized data:
> int x; // BSS
> int y = 0; // initialized data
Yes, that's what I did with the largest bunch of data. However, under some circumstances (tons of source code) it's difficult to be sure that every variable was changed.
Regards,
Mark Junker
|
Copyright © 1999-2021 by the D Language Foundation