473,847 Members | 1,499 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2371

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...accord ing 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...accord ing 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
2214
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 program working. I'd have attached the source code, some of it is Norwegian, but I'd think it will make sense anyway. Do anybody have a clue why the library is missing? The code compiled ok because the .h file is there, but the linker is...
8
5169
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 errors. With GCC 3.3.1, I do this with gcc -I/usr/local/include -g -O2 -std=c99 -pedantic -pedantic -D_BSD_SOURCE -Wall -Wunused -W -Wmissing-prototypes -Wconversion
14
3156
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 compiler for the embedded target. My question is about how compilers optimize certain code sequences. As an example, take the code below. Will the compiler eliminate the actual function call to foo() in the object code generated and just store...
3
5271
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 (0xc0000005 at address 535F072A): likely culprit is 'BIND'. An internal error has occurred in the compiler. To work around this problem, try simplifying or changing the program near the locations listed below. Locations at the top of the list are...
9
2302
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 browser. What is the issue? Thanks, Jim Server Error in '/psnRequest' Application. ----------------------------------------------------------------------------
21
13842
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 the size of integer on it. Is it Correct?? Or there any other way of finding it out? Do I need to mention that through a C++ program..??
30
2988
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
1939
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 like this : (very simple..........) 010001010110001101010101010101010101010101 #include<stdio.h>
159
7147
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
10991
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10653
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10347
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9490
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5725
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5915
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4129
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3168
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.