Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Member Login

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips now!
  • 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!

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

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Just wanted to let you know that I registered today, and your site is fantastic. I found solutions to problems that I have been encountering for months!..."

Geography

Where in the world do Eng-Tips members come from?
bretthydra (Mechanical)
7 Nov 11 8:48
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?  
IRstuff (Aerospace)
7 Nov 11 10:37
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

bretthydra (Mechanical)
7 Nov 11 11:32
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?
MikeHalloran (Mechanical)
7 Nov 11 11:40
Send me a copy and we'll figure it out.
 

Mike Halloran
Pembroke Pines, FL, USA

dik (Structural)
7 Nov 11 22:35
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
IRstuff (Aerospace)
8 Nov 11 1:53
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

CharlieM80 (Mechanical)
23 Nov 11 9:07
@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.
JayMaechtlen (Industrial)
4 Dec 11 17:56
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

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!

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