Topic : Error 107 Address Space Overflow depends on link order of C files?

Forum : 8051

Original Post
Post Information Post
October 10, 2011 - 6:31pm


I am experimenting with a project containing four c files. When I link them in a certain order the project compiles and links successfully.

But when I change the order, the link fails with ERROR 107 ADDRESS SPACE OVERFLOW ( for DATA segment).

I presume that this results from a different OVERLAID UNIT grouping, but I do not understand why this should be so: surely the runtime behaviour of the program (its call graph) remains the same, irrespective of the order that its component C files are linked, so the grouping algorithm should produce the same result in both cases?

Am I misunderstanding something?

Thank you


Post Information Post
October 11, 2011 - 3:41pm
Raisonance Support Team


Sounds interesting. Can you check from that you are using the latest version of the RKit-51?
If the problem persists, can you please send us your whole project (including temporary files such as obj, aof, lst, map etc) as a zipped archive, so that we can reproduce the behavior in our Labs?