473,396 Members | 1,748 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,396 software developers and data experts.

How do I find a compiler that will compile a specific program?

I need to do a minor update to a 8051 program written in
assembler in 1994 and assembled on a machine/language that no longer
exists. I wrote the program, so I have some idea how it works.

The assembler was asm80
A Cross Assembler

for the Intel 8080-8085

With CPM[tm] syntax

- by -

David A. Klotzbach

I have the C source for the program, but I can't compile it.
What I'd like is a dos/windows executable that I can use to
assemble my program, but I'd settle for something that works in linux.
I only plan to do this once.

I downloaded a freeware compiler for windows...no luck.
Built a Fedora Core 4 Linux system and tried that...no luck.
The error messages seem more about compiler directives than
C itself, but I'm no C programmer, so I can't tell for sure.
If I go hacking around in an assembler written in C, I'm gonna make
a mess for sure.

So, finally, my question: Given a C program, how does one go
about finding a compiler that will work on it? I'm not willing
to learn enough C to port someone else's assembler. And I really,
really don't want to port my program to a different assembler.
I think I can do a two-line patch without much debugging.
If I have to port it, I'll have to build a whole debugging system.

Do I have any options?
Thanks, mike
Jun 1 '06 #1
4 2339

mike wrote:
I need to do a minor update to a 8051 program written in
assembler in 1994 and assembled on a machine/language that no longer
exists. I wrote the program, so I have some idea how it works.

The assembler was asm80
A Cross Assembler

for the Intel 8080-8085

With CPM[tm] syntax

- by -

David A. Klotzbach

I have the C source for the program, but I can't compile it.
What I'd like is a dos/windows executable that I can use to
assemble my program, but I'd settle for something that works in linux.
I only plan to do this once.

I downloaded a freeware compiler for windows...no luck.
Built a Fedora Core 4 Linux system and tried that...no luck.
The error messages seem more about compiler directives than
C itself, but I'm no C programmer, so I can't tell for sure.
If I go hacking around in an assembler written in C, I'm gonna make
a mess for sure.

So, finally, my question: Given a C program, how does one go
about finding a compiler that will work on it? I'm not willing
to learn enough C to port someone else's assembler. And I really,
really don't want to port my program to a different assembler.
I think I can do a two-line patch without much debugging.
If I have to port it, I'll have to build a whole debugging system.


Using Google, and 5 minutes of my employer's time I managed to get to
something that looks like a binary/executable you're looking for:

http://www.geocities.com/rjkuhn_2000/as80_130.zip

Still, your question is probably better for one of the embedded groups.
If you ever try to go into "fixing" that C source you mention, do cmoe
here and ask.

Jun 1 '06 #2
mike wrote:
I need to do a minor update to a 8051 program written in
assembler in 1994 and assembled on a machine/language that no longer
exists. I wrote the program, so I have some idea how it works.

The assembler was asm80
A Cross Assembler

for the Intel 8080-8085

With CPM[tm] syntax
.....
So, finally, my question: Given a C program, how does one go
about finding a compiler that will work on it? I'm not willing
to learn enough C to port someone else's assembler. And I really,
really don't want to port my program to a different assembler.
I think I can do a two-line patch without much debugging.
If I have to port it, I'll have to build a whole debugging system.

Do I have any options?


<OT>
It is possible that the "machine/language that no longer exist" still
exist, or can be emulated in a modern system.

The options I see, in less-effort to more-effort order:

(a) Try searching for a ready to run version of asm80.

(b) Find somebody to help getting that assembler to work under a
modern C compiler.

(c) Convert the 8051 program to use a modern cross-assembler.
(Best option if you will do more maintenance work on that program)

(d) You mention an "8051 program" and a "cross assembler for the Intel
8080/85 with CPM syntax". I am going to guess this means your 8051
assembler is implemented as a set of macros for the cross assembler.
In this case you may be able to run the same macros on a "real" CPM
assembler under a CPM emulation such as MYZ80, etc. ( Try asking in
comp.os.cpm )
</OT>
Jun 1 '06 #3
Vladimir Oka wrote:
mike wrote:
I need to do a minor update to a 8051 program written in
assembler in 1994 and assembled on a machine/language that no longer
exists. I wrote the program, so I have some idea how it works.

The assembler was asm80
A Cross Assembler

for the Intel 8080-8085

With CPM[tm] syntax

- by -

David A. Klotzbach

I have the C source for the program, but I can't compile it.
What I'd like is a dos/windows executable that I can use to
assemble my program, but I'd settle for something that works in linux.
I only plan to do this once.

I downloaded a freeware compiler for windows...no luck.
Built a Fedora Core 4 Linux system and tried that...no luck.
The error messages seem more about compiler directives than
C itself, but I'm no C programmer, so I can't tell for sure.
If I go hacking around in an assembler written in C, I'm gonna make
a mess for sure.

So, finally, my question: Given a C program, how does one go
about finding a compiler that will work on it? I'm not willing
to learn enough C to port someone else's assembler. And I really,
really don't want to port my program to a different assembler.
I think I can do a two-line patch without much debugging.
If I have to port it, I'll have to build a whole debugging system.

Using Google, and 5 minutes of my employer's time I managed to get to
something that looks like a binary/executable you're looking for:

http://www.geocities.com/rjkuhn_2000/as80_130.zip

Still, your question is probably better for one of the embedded groups.
If you ever try to go into "fixing" that C source you mention, do cmoe
here and ask.

Thank your employer for his time...but...I, too, have a search engine.
The program you found has a similar name, but uses different input
syntax...according to the manual. I haven't actually tried it because
it throws an illegal instruction error and aborts in a win2k dos box.
I will give it a shot in a real dos environment, but I'm not optimistic.
Thanks, mike
Jun 1 '06 #4
mike wrote:
Vladimir Oka wrote:
mike wrote:
I need to do a minor update to a 8051 program written in
assembler in 1994 and assembled on a machine/language that no longer
exists. I wrote the program, so I have some idea how it works.

The assembler was asm80
A Cross Assembler

for the Intel 8080-8085

With CPM[tm] syntax

- by -

David A. Klotzbach

I have the C source for the program, but I can't compile it.
What I'd like is a dos/windows executable that I can use to
assemble my program, but I'd settle for something that works in linux.
I only plan to do this once.

I downloaded a freeware compiler for windows...no luck.
Built a Fedora Core 4 Linux system and tried that...no luck.
The error messages seem more about compiler directives than
C itself, but I'm no C programmer, so I can't tell for sure.
If I go hacking around in an assembler written in C, I'm gonna make
a mess for sure.

So, finally, my question: Given a C program, how does one go
about finding a compiler that will work on it? I'm not willing
to learn enough C to port someone else's assembler. And I really,
really don't want to port my program to a different assembler.
I think I can do a two-line patch without much debugging.
If I have to port it, I'll have to build a whole debugging system.

Using Google, and 5 minutes of my employer's time I managed to get to
something that looks like a binary/executable you're looking for:

http://www.geocities.com/rjkuhn_2000/as80_130.zip

Still, your question is probably better for one of the embedded groups.
If you ever try to go into "fixing" that C source you mention, do cmoe
here and ask.

Thank your employer for his time...but...I, too, have a search engine.
The program you found has a similar name, but uses different input
syntax...according to the manual. I haven't actually tried it because
it throws an illegal instruction error and aborts in a win2k dos box.
I will give it a shot in a real dos environment, but I'm not optimistic.
Thanks, mike

Try :
http://www.df.lth.se/~pi/compis/file...nguages/plm80/

This will give you an ISIS emulator and the asm80 assembler

It should also be available on the CP/M page at :
http://www.cpm.z80.de/download/plm80.zip

Probably the second link offers more information.

Regards,
Hans
Jun 2 '06 #5

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

Similar topics

2
by: Sigmund Skjelnes | last post by:
Hi! Trying to get a simple cpp program to compile, I'd got the linker complaining it could'nt find eiter cout nor endl or other object which belong to iostream. I'd had to use stdiolib to get the...
8
by: Charlie Zender | last post by:
Hi, First, this may be a GCC or Linux-specific problem, I'm not sure. I am unable to compile a large body of code with extremely pedantic compile time checks activate, so that warnings cause...
14
by: joshc | last post by:
I'm writing some C to be used in an embedded environment and the code needs to be optimized. I have a question about optimizing compilers in general. I'm using GCC for the workstation and Diab...
3
by: Mark Rockman | last post by:
------ Build started: Project: USDAver2, Configuration: Debug .NET ------ Preparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error...
9
by: JTrigger | last post by:
When I compile my project using the IDE on a development machine it works just fine. When I compile it on the server using csc.exe, I get the following error when I try to bring it up in the web...
21
by: codergem | last post by:
One common answer is that all compilers keep the size of integer the same as the size of the register on a particular architecture. Thus, to know whether the machine is 32 bit or 64 bit, just see...
30
by: lovecreatesbea... | last post by:
K&R says the following in the preface to the first edition, "... the C compiler, and ... are written in C." I'm wondering, does it say even the first / original C compiler was written in C?
9
by: xiao | last post by:
It always dumped when I tried to run it... But it compiles OK. What I want to do is to do a test: Read information from a .dat file and then write it to another file. The original DAT file is...
159
by: bernard | last post by:
howdy! please recommend a good c compiler. - should be small - should be fast - should come with a good ide - should be inexpensive i am using windows os.
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.