c - Green Hills Sw small data area overflow -


this question has answer here:

i trying compile embedded c code, small data area overflow occurs. know mean, don't know how solve it. can make suggestion?

so, problem there r13 register base pointer of sda, , 16 bits long. signed points middle of sda, , can used offset given variable value.

if variable told put sda #pragma ghs startsda addressed sda_base+r13, if variable @ address cannot addressed base+register offset, sda overflow reported.

how can find caused overflow? if don't have map file yet don't know variable addresses.

you need check see compiler configuration. compiler can automatically put data .sda area. forget exact flag can exclude data greater specific size .sda. example can things greater 64-bits not go sda. way big buffer define not waste of sda space.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -