From: Jesus Calvino-F. <Je...@ec...> - 2002-12-01 03:49:38
|
Hi, There is a problem, a bug if you will, with the aslink generated cdb file for the 8051 port. Suppose I am linking these four files 'a.rel', 'b.rel', 'c.rel', and 'd.rel', created after compiling the corresponding C files with option --debug. This also creates the corresponding cdb files for each module. Then the linker (called with option --debug too) combines all these cdb files and saves them to 'a.cdb'. The problem is that if the files are linked again, say after recompiling any but the first file 'a.cdb', the cdb files are recombined and written to 'a.cdb' again. Therefore 'a.cdb' keeps growing and growing, and of course the information it contains becomes redundant and likely incorrect. One solution to this problem would be to recompile 'a.cdb' anytime one of the other files is compiled. Of course that is not very practical. Other solution would be either to change the linker so it writes the linked cdb file with a different extension, say 'ldb', or change the assembler so it writes the cdb file with a different extension, say 'adb'. Any other solutions, preferences, opinions? Thanks in advance, Jesus |