Skip to main content

How 2 get phisical memory address for cvm

4 replies [Last post]
howe333
Offline
Joined: 2007-04-25

Dear everyone:

When i start cvm in c++ as threads, how can i get cvm's memory address .Because i want to point memory address 4 cvm by myself .

3xs!
howe.cn

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mlam
Offline
Joined: 2006-10-13

howe,

what do you mean by "point memory address 4 cvm"?

-- mark

howe333
Offline
Joined: 2007-04-25

Dear malm:
My means that i want to set memory address(Virtual address ) 4 cvm by myself.

mlam
Offline
Joined: 2006-10-13

Dear howe,

Do you mean the virtual address of where you want to load the CVM code? Or the virtual address of where the .bss and .data segments get located? Or where stack and/or heap memory gets allocated from? For all of these, CVM has no control over where it is loaded. The loading location is currently determined by the OS. It is no different from any C/C++ program you would write.

Or are you asking about some other piece of memory content?

Also, your question seems peculiar. May I ask why you're asking to set this virtual address? What are you trying to achieve? Maybe there is an alternate solution that I can recommend if I can understand your intent better.

Regards,

-- Mark

howe333
Offline
Joined: 2007-04-25

Thanks 4 ur reply,
Pls wait ,i correct all info ,and show u.
3ks
howe