goobers
Member
I know this isn't exactly a GP2X relevant question, but I feel that this is probably the best place to ask. Sorry if it would be better placed in Off Topic, but I feel that the people likely to be able to answer my question would see it here.
What I want to know is how a compiler would handle memory addressing. The reason I ask this is because I am about to build a Z80 based single board computer and am wondering about the possibility of a C compiler. I know that there are C compilers for a Z80, but I am confused as to how this would work with the differing memory locations.
The Z80 I am looking at using can address 1MB of memory, and I am planning on having 512k rom and 512k ram. How exactly would I be able to adjust a compiler to work with this memory arrangement?
Have I got the wrong end of the stick completely and the Operating System handles memory management when the code is executed?
Thanks for your help, and I hope my question isn't too stupid. I am building it in an effort to better understand the workings of computers, and for no real practical purpose. Best way eh?
Cheers
What I want to know is how a compiler would handle memory addressing. The reason I ask this is because I am about to build a Z80 based single board computer and am wondering about the possibility of a C compiler. I know that there are C compilers for a Z80, but I am confused as to how this would work with the differing memory locations.
The Z80 I am looking at using can address 1MB of memory, and I am planning on having 512k rom and 512k ram. How exactly would I be able to adjust a compiler to work with this memory arrangement?
Have I got the wrong end of the stick completely and the Operating System handles memory management when the code is executed?
Thanks for your help, and I hope my question isn't too stupid. I am building it in an effort to better understand the workings of computers, and for no real practical purpose. Best way eh?
Cheers