using c8051f120 I built a project with a code size 62 k (2 k less then limit of 64 k).
Next I made my project banked as follows: c8051f120 support 4 banks with 32 k (128 k total), bank#0 is used as common bank. I placed only one small function in separate module in Bank#1 All other project in Common (Bank#0). So the code for common bank exceeds 32 k limit for bank but compilation is successful without errors and warnings. WHY?
Next I chose another small module and placed it in Bank#2 So I Have something like this
60 k => Common 1 k => Bank#1 1 k => Bank#2
with the bank size 32 k But this project succesfully compiled again.
Can anybody explain Should there be warning for code size for each bank or not?
it is always a kludge to get the processor to do something for which it was never designed!