From: Bernardo C. <bjc...@ya...> - 2005-06-06 18:15:41
|
Hello. I've been using sdcc for a project implemented over a p89c51rd2, which has a total of 1KB in-circuit RAM. Since I've been using a lot of libraries and functions, mainly because I've got a few totally different peripherals, then RAM usage grows up at high speed. I've been compiling my code with: sdcc --code-size 65536 --iram-size 256 --xram-size 768 --model-large which I though was a good way, but now I would like to save some ram usage, 'cos my software is reaching the ram limit. I see that a lot of functions could use the same memory areas, but isn't using, surely 'cos I dind't write, or compile, my code in the proper way. So, basically, I was thinking of make some functions reentrant (which I don't know if will be a solution), or make my libs overlay in some way (which I don't know how to do with --model-large), or (if no other option comes in place) define myself a memory map and hard-code the functions and variables to respect that map. Well, you know, there is a lot of better programmers than me, and a few of them come here in a regular basis, so I would better ask you first... what do you think about my solutions? which one could be the best?, and how it could be done? Thanks In Advance Saludos BJ Bernardo Clavijo PS: forget my bad english... someday I'll learn to write in a readable way. ___________________________________ A tu celular ¿no le falta algo? Usá Yahoo! Messenger y Correo Yahoo! en tu teléfono celular. Más información en http://movil.yahoo.com.ar |