|
|
|
|
 在非连续地址空间布局代码的问题 - josuya [ 2005-08-26 08:58 | 287 byte(s)]
 Re: 在非连续地址空间布局代码的问题 - BNN [ 2005-11-23 06:39 | 250 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
|
如果要在一个非连续的地址空间上布局代码,比方说内存被分成很多块,代码只可以使用其中某些块,但是各个块并不相邻,这时候该怎么做呢?在某一块中安排代码如果放不下,那么就需要一些jump之类的指令跳到别的块上去,想问一下这样的情况通过修改机器描述的手段能让gcc支持吗?用什么方法实现比较好呢?谢谢!
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
I assume that you are talking about un-contigueous virtual memory space.
Then write your own linker script to define the memory space for your TXT, DATA, BSS and so on.
This is then easy for you to achieve the above goal.
|
|
|
----
天若有情天亦老,人间正道是沧桑。
|
|
[Original]
[Print]
[Top]
|
|
|