Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

a compiler

Status
Not open for further replies.

Willbe

New Member
Anybody have a link for free/shareware for an old version of a Pascal compiler? I don't have any books anymore on C or Ada or Icon.

Otherwise it's good ol' GW-BASIC, all 62 kB worth.
:D
 
You can Google "Turbo Pascal download" and find it on several sites for free download (it's legit). If you search the forum I've posted links to it before, too.

Here's one: **broken link removed**


Good luck!

Torben

[Edit: The SWAG is still online too, if you can believe it! Check out http://www.bsdg.org/SWAG/ ]
 
Last edited:
Hi Willbe,

There is another language similar to Pascal that is called "Euphoria".
It can do console apps as well as Windows apps with user made
libraries. Everything is free, and the compiler is open source now too.

Here's a quick example of a loop:

Code:
for k=1 to 10 do
   printf(1, "%d\n",k)
end for

There are also built in functions to link to C libraries 'dll' such as Windows
dll's like kernel32.dll, user32.dll, gdi32.dll, etc. By using some Windows
Help files you can learn how to call these Windows dll functions to create
windows, message boxes, etc., with just about anything in them like
buttons, menus, text boxes, etc.
You wont regret at least taking a look at this.
 
Last edited:
Hi Willbe,

There is another language similar to Pascal that is called "Euphoria".
It can do console apps as well as Windows apps with user made
libraries. Everything is free, and the compiler is open source now too.

Here's a quick example of a loop:

for k=1 to 10 do
printf(1, "%d\n",k)
end for

There are also built in functions to link to C libraries 'dll' such as Windows
dll's like kernel32.dll, user32.dll, gdi32.dll, etc. By using some Windows
Help files you can learn how to call these Windows dll functions to create
windows, message boxes, etc., with just about anything in them like
buttons, menus, text boxes, etc.
You wont regret at least taking a look at this.

Looks pretty neat. However, for someone with a Pascal background, Lazarus might be even more attractive. It's an open source Delphi clone which more or less took over after Kylix. No need to learn a new language; just learn a couple of things about the IDE and you're laughing.

Euphoria does look interesting, though.


Torben
 
Hi Torben,


Yes, it's quite interesting and i've been using it for about 10 years now.
The other interesting thing is that it is a interpreted language so you can
quickly check for errors and get feedback as to what line the error is
in, and what file.
It also comes with a Euphoria to C translator, which takes your program
and translates it into the C language so you can use a standard C
compiler (one of the open source ones) to build it, which increases speed
to some extent. I never use this however as i dont seem to need it.
There are also various user contributions that include whole windows
libraries so you can create various windows objects sort of like this:

MyWindow1=Create(Window, caption, size, background_color, style)

or a 'C++' style library like this:

MyWindow1=Window:Create(caption, size, background_color, style)

Luckily all the software is free.
 
Last edited:
Hi Torben,


Yes, it's quite interesting and i've been using it for about 10 years now.
The other interesting thing is that it is a compiled language so you can
quickly check for errors and get feedback as to what line the error is
in, and what file.

Hi MrAl,

I think you meant "interpreted", not compiled. But yeah, that's what I like about languages like PHP, Python, and Ruby, too. But I'd use them for times when I didn't need tight machine control and don't care about the interpreter overhead. For low-level PC stuff I stick with C--or even Pascal if I'm just coding for fun--and inline assembly. Pascal's compiler is fast enough that it might as well be an interpreted language for all that the compilation time slows you down, unlike C's. :)

Another language I've been reading a bit about and wanting to get around to playing with is D.

It also comes with a Euphoria to C translator, which takes your program
and translates it into the C language so you can use a standard C
compiler (one of the open source ones) to build it, which increases speed
to some extent. I never use this however as i dont seem to need it.
There are also various user contributions that include whole windows
libraries so you can create various windows objects sort of like this:

MyWindow1=Create(Window, caption, size, background_color, style)

or a 'C++' style library like this:

MyWindow1=Window:Create(caption, size, background_color, style)

Luckily all the software is free.

:) I don't use programming languages that aren't free (as in beer or as in information ;) ). There's just too much good stuff available for free and most of the non-free stuff tries to tie the coder in to one system too much, it seems.


Torben
 
Last edited:
Hi again,


Yes, sorry, i meant 'interpreted', and i fixed that typo in my previous
post now...thanks for pointing that out...will make more sense now
for other readers :)
 
Anybody have a link for free/shareware for an old version of a Pascal compiler? I don't have any books anymore on C or Ada or Icon.

Otherwise it's good ol' GW-BASIC, all 62 kB worth.
:D

As you're wanting DOS, check Borland, they have legacy versions of their Turbo Pascal and Turbo C compilers for free download in their museum section.
 
Thanks all!
:)

You can Google "Turbo Pascal download" and find it on several sites for free download (it's legit). If you search the forum I've posted links to it before, too.

Here's one: **broken link removed**


Good luck!

Torben

[Edit: The SWAG is still online too, if you can believe it! Check out http://www.bsdg.org/SWAG/ ]

OK, I have the download in a folder on my C drive. How do I unzip & operate?
 
Last edited:
Thanks all!
:)

OK, I have the download in a folder on my C drive. How do I unzip & operate?

Download something like 7zip and, after you've installed it, read the help files that come with it. I suspect it will be easiest if you use the GUI (I'm not sure whether it comes with a command line interface as well). Once it's installed you should be able to just double-click on the Turbo Pascal zip file to view its contents and extract them to where you want them.


Torben
 
Status
Not open for further replies.

Latest threads

Back
Top