1 Dec 2008 08:14
Re: How to control code segments ?
Dong Phuong <dongphuong2410 <at> yahoo.com>
2008-12-01 07:14:44 GMT
2008-12-01 07:14:44 GMT
"Linker relaxation" is maybe what I'm looking for. But I've searched it on google , but there are few doccuments about it, now I haven't imagined yet how to implement Linker Relaxation. Could you tell me some of doccuments about it and where in the binutils that it was implemented ? --- Alan Lehotsky <qsmgmt <at> earthlink.net> wrote: > Look at the implementation of the IP2K compiler and > linker. > It uses a segmented paged architecture just like the > machine you are > describing. > > In essence what we did was implement linker > relaxation to deal with > this. > When we called any function, we emitted the > appropriate long-call by > setting > the page register and jumping to the location on > that page. > > In the linker, we implemented relaxation code that > looked to see if > we were changing to the SAME page, and if so deleted(Continue reading)
RSS Feed