×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

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

Jobs

Old Basic program compiled?

Old Basic program compiled?

Old Basic program compiled?

(OP)
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.

TTFN

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

RE: Old Basic program compiled?

(OP)
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.

Dik

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

TTFN

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

CODE

SAVE "FILENAME.TXT",A
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.

cheers
Jay

Jay Maechtlen
http://www.laserpubs.com/techcomm

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


Resources

White Paper – Data Security and Know-How Protection
Our data is constantly exposed to the danger of being intercepted or stolen as it wends its way over global data networks. Data security measures and measures for protecting intellectual property should not, however, first be implemented when data is exchanged – companies must lay the foundation for these measures within their own organization. Download Now
White Paper – Collaboration in the PLM Context
The influence exerted by the Internet of Things (IoT) means that there is a steadily growing need for collaboration in industry. Partners from new industries and areas of application need to be integrated in cross-company business processes to ensure that the lifecycle of smart, connected products can be managed from end to end. 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