[Z88dk-users] Global Optimization? Or just per file optimization?

Bridge to the z88dk-users mailing list
Post Reply
Fabrizio
Member
Posts: 58
Joined: Tue Jul 11, 2017 9:28 pm

[Z88dk-users] Global Optimization? Or just per file optimization?

Post by Fabrizio »

Does the optimizer look at each file seperately?
Or doing global optimization?

If yes, which options and compiler must be used for global optimization?

Fabrizio
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

Post by alvin »

Does the optimizer look at each file seperately?
Or doing global optimization?
In C, each translation unit (file) is consumed independently. The only kind of optimization that could be done across files is link-time optimization and nothing like that is being done now.
Within a file, optimization is done per function and per block.
Post Reply