473,398 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

I need C complier.

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.

Jun 20 '06 #1
4 2717
"Quas.co.ua" <qu**@supermail.com.ua> wrote in message
news:44***************@supermail.com.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.
Your question is actually several questions.
Your problem is actually several problems.

There are several open source C compilers available (GCC being the most
famous). But exactly where something goes into memory is not a function of
the compiler so much as it is a function of linker and loader.

If you just want to create an emulator/simulator, then look at the SIMH
project:
http://simh.trailing-edge.com/

Absolutely for sure, it will be a lot easier than what you are thinking
about and do a better job too, if you make an emulator with that code base
as a starting point.
--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.

Jun 20 '06 #2
On Tue, 20 Jun 2006 22:11:37 +0300, Quas.co.ua wrote:
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.

<snip>

If this doesn't provide all that you actually need, it's probably the
best starting point:

http://fabrice.bellard.free.fr/tcc/
Jun 20 '06 #3
Dann Corbit wrote:

"Quas.co.ua" <qu**@supermail.com.ua> wrote in message
news:44***************@supermail.com.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.
Your question is actually several questions.
Your problem is actually several problems.


several probalems with several questions are several tasks together.

There are several open source C compilers available (GCC being the most
famous). But exactly where something goes into memory is not a function of
the compiler so much as it is a function of linker and loader.
But it deals with out code of compiler, and what must be compiled replaces
funtionality of linker and loader and some unique together.

If you just want to create an emulator/simulator, then look at the SIMH
project:
http://simh.trailing-edge.com/

Absolutely for sure, it will be a lot easier than what you are thinking
about and do a better job too, if you make an emulator with that code base
as a starting point.
I do not guess with above link emulator you'll be able to run x86 code on
processor
like Crusoe to fulfil positions of "new principle of personal computer
performance calculation/measurment". :)
--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.

Jun 20 '06 #4
William Ahern wrote:

On Tue, 20 Jun 2006 22:11:37 +0300, Quas.co.ua wrote:
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.

<snip>

If this doesn't provide all that you actually need, it's probably the
best starting point:

http://fabrice.bellard.free.fr/tcc/

I'll check it out.

Jun 20 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Francisco J. Reyes | last post by:
I get an Internal complier error when compiling C# windows project that uses a custom Class add as reference to the project. The problem appears to be related to the ENUM type used in the class...
3
by: Ygn | last post by:
#include <stdio.h> #include <winsock2.h> #include <windows.h> #include <process.h> #include <string.h> #include <winbase.h> #include <sys/socket.h> I would like to do compiling this header....
2
by: qbin_wang | last post by:
Hi: now i want to download a free c complier which can be used in windows system.and i see many posts in the comp.lang.c,but i don't find the answer.who can tell me the true and correct website...
2
by: Ali Alsaffar | last post by:
Hi there, - I updated my windows XP professional with all critical updates available at windowsupdate.com - I updated Microsoft .NET Framework 1.1.4322 from thier also - I installed Visual Basic...
11
by: jryden | last post by:
I wrote the following code into a console program in Visual C++6. If you build a release build and select custom optimizations and select 'general optimizations' as the only optimization then you...
1
by: tccode97 | last post by:
Hi, I need an urgent help. I am developing a socket application in VC++ that uses asynchronous connnection. After doing search on google, I found the following link ...
11
by: neha | last post by:
Hi My question is : Would the expression *p++=c be disallowed by the complier. The answer given in the book is: No.Because here even though the vlue of p is acced twice it is used to modify...
46
by: Bruce W. Darby | last post by:
This will be my very first VB.Net application and it's pretty simple. But I've got a snag in my syntax somewhere. Was hoping that someone could point me in the right direction. The history: My...
16
by: sriever4u | last post by:
I am new to ARM linux, i am working on AT91RM9200 board and using ARM linuc C complier.. i want to know how to produce nanosecond delay using software...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.