Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Old Basic program compiled?

Old Basic program compiled?

Old Basic program compiled?

Please forgive my ignorance in advance, I am not a software engineer
so here goes.
We have a version of an old basic program written in the 1980's.
We believe it is compiled.
We are looking to have it re-written.
Is this possible?  

RE: Old Basic program compiled?

Generally BASIC programs from the 80s were not compiled, but interpreted.  Can you read the code in English?  If so, then you're 90% of the way there.

Your last question confuses me.  Any code can be re-written; it's just a matter of time and money.

Again, if you actually have the source code, and the fact that you know it's BASIC suggests so, it can probably be ported verbatim into Visual Studio BASIC or even Excel's Visual BASIC for Applications.

BASIC programs tend to steer away from dinking with the computer hardware, particularly for any kind of engineering analysis program.  That should make it relatively simple to port.


FAQ731-376: Eng-Tips.com Forum Policies
Chinese prisoner wins Nobel Peace Prize

RE: Old Basic program compiled?

Once again, apologies for my lack of programming knowledge.
We cannot get to the source code, we just run the file as an application.
What does this suggest?

RE: Old Basic program compiled?

Send me a copy and we'll figure it out.

Mike Halloran
Pembroke Pines, FL, USA

RE: Old Basic program compiled?

The early GWBasic used a tokenised interpreter and with the proper switch set, it could output the text form of the source.  I don't think I even have DOS or Basic manuals for this.  I don't recall how it was done, now, about 20 or more years ago... I'm nor sure I even used Basic on my Win3 machine... Have written some large programs in Basic... source over 1M... for some. Frame analysis, FEM, Stormwater management, etc... started with GW, then QB1... to QB4.5, PDS7.1, then visual basic... almost the complete basic chain... and switched to Delphi... I'll check with my programmer buddy to see if he can offer any advice.


RE: Old Basic program compiled?

If there is only an application, it's possible that it was fully compiled.  There was a couple of BASIC compilers floating around in the 80s.  If so, you're pretty much out of luck, I think.  You can potentially decompile executables, but you'd most likely get assembly language. which would be that useful.  Nonetheless, there are BASIC-specific decompilers that might get you further: http://www.google.com/#sclient=psy-ab&hl=en&source=hp&q=basic+decompiler&pbx=1&oq=basic+decompiler&aq=f&aqi=g1g-v3&aql=&gs_sm=e&gs_upl=400687l403483l1l403967l16l11l0l4l4l0l215l1675l3.6.2l15l0&bav=on.2,or.r_gc.r_pw.,cf.osb&fp=943216f5c5580e8f&biw=1272&bih=799


FAQ731-376: Eng-Tips.com Forum Policies
Chinese prisoner wins Nobel Peace Prize

RE: Old Basic program compiled?

@dik: In the interpreter, appending ',A' when saving works.  ie


will save in ASCII format.  There were also a few stand-alone programs to convert tokenized to ASCII without going through the interpreter IIRC.

@bretthydra: If the program can't be converted to human-readable (source code) format, your only options are to either have it re-written from scratch using the program specifications, or keep using it in a virtual machine (ie DosBox, VirtualBox, VMWare, etc).  

I can't think of many engineering programs of that vintage that couldn't be vastly improved by using modern HW and algorithms.

RE: Old Basic program compiled?

heh- In 1982, when I started at US Amada, our AMACOM CNC programming software was written in MS Basic, and compiled.
Yes, MS did sell a compiler for their language.
Some years later, as things developed, our products were developed in other languages.

FWIW, the product that preceeded our CP/M-based AMACOM was a Tektronics graphics terminal, running its own Basic- interpreted.
From what I could find out, it was a 12-bit system, using 3 4-bit processors.


Jay Maechtlen

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


eBook - Manufacturing the Cars of Tomorrow
In this ebook, we'll explore how additive manufacturing is going to transform the way cars are made. This includes commentary from thought leaders such as Ford's CTO, Ken Washington, Customer case studies of ways 3D printing is being used today, and a variety of part examples where 3D printing is already impacting how automobiles are made. Download Now
White Paper - Smart Manufacturing for Semiconductor
New technologies and approaches present great opportunities for semiconductor manufacturers to achieve high levels of innovation, yield and improvement. This white paper explores some of these cutting-edge technologies and how they can be applied effectively in the semiconductor industry. Read about how Smart Manufacturing is transforming the semiconductor industry. Download Now
White Paper - Analysis and Simulation in Aircraft Structure Certification
Organizations using simulation and analysis tools effectively see the benefits in their ability to achieve certification faster and with drastically less total cost than those who do not maximize these tools. Read this White Paper to learn about how digital tools such as analysis and simulation help in aircraft structure certification. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close