2/11/08

Helping Crinkler

There are two things to understand about crinkler that can help. Crinkler replaces your linker which means it has access to sections of code and data when linking. It can re-arrange these sections to achieve more compression. Even more, crinkler uses two different schemes for compression: one for code and one for data. The Crinkler manual talks about defining data and code blocks in assembler. However, its possible from C too.

#pragma data_seg(".name1")
#pragma code_seg(".name2")

The pragma statements can be and should be used just before every chunk of data and every new function. Any names can be used but meaningful ones are useful when Crinkler outputs its report.

No comments:

Post a Comment