Q
Quas.co.ua
Hello all.
I need your help.
I need C compler to make demo of some technologie.
This C compiler I need to write program
which after run will be located in one segment of memory
and it generates another code an write it into another (second) segment.
And after some fragment of code is generated program from first segment
runnes just generated code from second segment which may return in first
serment.
After code in first segment may change code in second segment and again run it,
and vice versa
Code in first sergment must be compiled from:
1) C source code (I may not write such on assembler),
2) must be loaded with operation system,
3) and will not be changed dynamically.
Code in second segment may not be loaded from file but generated and changed
dynamically.
This C compiler should:
1) out 8086 code
2) allow assembler parts
3) be not a cross-compiler (should be runable under target OS best of all DOS;
Bruce Evans' C compiler works under Linux if not only tell me how, pls.)
4) should support intrrupt calls and handling.
Also it was good if such compiler did not obligate legal restrictions
on usage of its output.
Do I have an alternetive to design my own C-compiler and entire OS?
Please advice or may me clear what can I do.
Thank you.
--Quas
P.S. Why do I need to do that shortly it looks such:
1) Many years ago I used computer with 8-bit processor i8080.
2) I analized execution of code and invented some principles automatical
manipulation with machine code,
called particularly for execution of code made for some hardware on another.
3) Untill that computer went broken I did not try that on practice.
4) Today I want write emulator of that obsolete computer on x86 with
technological principles I invented or as people told in newsgroups I was not
first who invented it.
I need your help.
I need C compler to make demo of some technologie.
This C compiler I need to write program
which after run will be located in one segment of memory
and it generates another code an write it into another (second) segment.
And after some fragment of code is generated program from first segment
runnes just generated code from second segment which may return in first
serment.
After code in first segment may change code in second segment and again run it,
and vice versa
Code in first sergment must be compiled from:
1) C source code (I may not write such on assembler),
2) must be loaded with operation system,
3) and will not be changed dynamically.
Code in second segment may not be loaded from file but generated and changed
dynamically.
This C compiler should:
1) out 8086 code
2) allow assembler parts
3) be not a cross-compiler (should be runable under target OS best of all DOS;
Bruce Evans' C compiler works under Linux if not only tell me how, pls.)
4) should support intrrupt calls and handling.
Also it was good if such compiler did not obligate legal restrictions
on usage of its output.
Do I have an alternetive to design my own C-compiler and entire OS?
Please advice or may me clear what can I do.
Thank you.
--Quas
P.S. Why do I need to do that shortly it looks such:
1) Many years ago I used computer with 8-bit processor i8080.
2) I analized execution of code and invented some principles automatical
manipulation with machine code,
called particularly for execution of code made for some hardware on another.
3) Untill that computer went broken I did not try that on practice.
4) Today I want write emulator of that obsolete computer on x86 with
technological principles I invented or as people told in newsgroups I was not
first who invented it.