Dear all,my footprint of 51 on my project board is PLCC44,so the ICE can't be used(footprint is DIP40).I have to connect the 51's serial port to PC and dump everthing I need to it.So the program of debug version are full of "printf" statements which are unnecessary on release version.Thus,Can we write a "TRACE" macro to resolve it?MFC implement it for us while Keil C don't.
"macros such as HIBYTE,LOBYTE etc,we must define it ourselves.A direct way is to steal the codes from the windows SDK or MFC" Be very careful! Not only are you dealing with a different Compiler, but also a completely different target. You can't just steal them - you will need to read them carefully & fully understand them to be able to decide if they will give the right resuls with Keil C51, or what modifications are required!