I'm very glade to have a changce to make a communication with everyone here,although my English is very very poor! As a beginner,I'm afraid that I can't get well with keil software! What i used is keil c166 software,but i can't locat the section on a fixed memory position,for example, section1( which I had defined it in the program ) and I want to locate it on the segment(80000h - 8ffffh),what should i do? If it is possible that you can give me an example,i will thank godness,and thank you!
Just an offbeat question: we get, regularily, questions about fixed memory positions from Asia, but never (AFAIK) from Europe or the US. Is there a reason that fixed memory is prevalent in Asia? Just curious Erik
In case you want to locate data (and not code) at a fixed address: This issue is described in the C166 compiler user's guide, section "absolute memory address". By the way - we're in Europe and not in Asia and we have some data at fixed address ;-)
I did not ask if, I wondered WHY? Obviously MMIO is at fixed addresses, but I would not call that 'data' Erik
Example: We're using the XC164 which has 2K program SRAM at 0xE00000. We don't need these 2K for code as we're fine with the 128K ROM but need more memory for data. So I declared a FAR memory block and placed it at 0xE00000.
that makes absolute sense, the thing that puzzles me is the desire to place variable xyz at a specific location (again excluding MMIO) Erik