Hi, i am using MC9RS08LA8(code warrior ver-6.3) and my current code size is 7990 bytes and i can go up to 8050 bytes( maximum ROM size is 8KB and some space is allocated to constant table) . when i add
32 bit division it showing ROM is out of allocated size. The 32 bit division is given below ,
signed int long Data=0;
//here i'll get 32bit data from serial port
Data=Data/1000l;// when i remove this line the code can be compiled and when i add this line the ROM overflow occurs.
help me to solve this.
Thanks,
解決済! 解決策の投稿を見る。
Hi,
thank you for contacting us.
in 8bit MCU, long int computation is very memory consuming.
Data=Data/1000l takes around 420bytes.
so i don't think your project have enough memory for it.
optimization for code size can reduce some code size, but the reduction is quite limit according to my experience.
can this help you?
Have a great day,
Zhang Jun
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
can you upload your project here so that i can reproduce it directly on my side?
Ok, how do i send my file?
Hi,
thank you for contacting us.
in 8bit MCU, long int computation is very memory consuming.
Data=Data/1000l takes around 420bytes.
so i don't think your project have enough memory for it.
optimization for code size can reduce some code size, but the reduction is quite limit according to my experience.
can this help you?
Have a great day,
Zhang Jun
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you so much.
Hi,
I can compile code but when i press debug . it showing the ROM is out of allocation and when i compile i cant get the output file (i.e.*.abs).
to get the *.abs file how to do compile.
Thanks,
You are welcome!
Have a great day,
Zhang Jun
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------