hello to all I am using uVision to program the atmel at89c51 microcontroller. My code is slightly smaller than 4kb, as this chip has a 4kb memory. However, uVision has only two options for the size of the compling target, 2k and 64k. When i compile my code in 64k mode, the hex file is about 12kb(!), too large for the chip. What can i do to fix it?
You're completely messing up basic concepts here. You're comparing numbers in units of kB that have quite exactly no relation to each other: 1) source code length 2) the default jump width assumed by the compiler 3) hex file size 4) actual code size Honestly, this leaves the impression you never as much as opened the manual, much less tried to actually work with it.