|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
How much memory is there really?
Hi
I just started trying some algorithms for our arm, and ran into some memory problems. I want a big lookup array. The linker barfed when I tried to declare an 800 BYTE array. So I started poking around in the MAP file. It seemed that there was a lot of code space to spare (I was only utilizing 12%), so I tried declaring the array as "rom" to see if I could use code space for my lookup table (since it will never change). Woo-Hoo. I can seem to define SCADS of space there: eg: rom BYTE Omega[20000][2] ; The map file verifies that this allocation is OK and ending up in the code space... so my question is: Does this memory really exist in the RC? In other words will the linker protect me from over declaring space? I want to be sure that I'm not just being fooled by the compiler/linker. Any experiences with large const data in the code memory? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A robotic challenge that's really out there | Richard Wallace | General Forum | 3 | 19-09-2006 20:26 |
| How much does Israel really cost the US tax payer?? | Matt Attallah | Chit-Chat | 9 | 23-07-2006 01:18 |
| Is there really inspiration in teams? | Philip W. | General Forum | 22 | 22-08-2005 11:53 |
| Do teachers really know that there talking about?!? | Erodge | Chit-Chat | 17 | 19-10-2002 00:41 |
| how much is too much on the DRILL MOTORS? | archiver | 2001 | 11 | 23-06-2002 23:53 |