Pascal compiler for PICs:
Pas2PIC
This compiler compiles Pascal-like programs to 14-bit Microchip
PIC devices. Originally I started to develop it because I was not satisfied with free compilers
available for these devices, and I couldn't afford to buy one. Most of the free
high-level compilers aren't similar to any existing languages, (except the BASIC
compilers, but I don't like BASIC) so I wanted to create a compiler,
which has syntax as similar to Pascal as possible. Why Pascal? At the time of starting
the development, I thought it to be more convenient than C. However the implemented
language a bit differs from Pascal, these differences are quite small. Because 14-bit
PIC's don't have hardware stack, there are some limitations too. But I hope you will find easy to make great programs with this
compiler.
This project is discontinued and not supported any more. Still, if you want to write me a mail:
|
2006 02.18 |
|
|
Source code released
I've been planning since a long time to release the source, but I didn't have the time needed to make the code easy to understand.
It seems that this won't change, but I don't want to hold back the code any more, so you can use it under the terms of GPL.
It comes "as is", i am not saying that you will be able to understand it, or even that it works.
This is not the source code of the 0.9beta binary, because that was accidentally lost. (because of hardware-failure)
You will find some (pretty much) unused code, these are mostly for debug, and there are some unfinished features. (pointers for example)
And I know, that it's a serious mistake that the program doesn't handle memory-freeing, but as this should happen
at the very end of the program, the operation system does it anyway, so it can be tolerated.
If you compile it to any new platform (DOS and FreeBSD port would be greatly appreciated) please send it to me, so I can make it available to download.
|
|
|
|
2005 08.20 |
|
|
0.9 beta is out.
Supports hex output, devices with more than 2k program memory, system units finished, some small bugfixes,
and improved interrupt-management.
|
|
|
|
2005 08.03 |
|
|
Finally...
I could work on the compiler much less than I planned, although it's not May :(
This release is marked as "alfa". This is mostly because i didn't have much time to test.
Furthermore it's not finished fully: SetINDF assembly macro is not implemented, and programs bigger
than 2k won't work very likely. Unfortunately the .hex output isn't implemented yet, so you'll have to
use the .asm output, and compile it with MPASM. Other problem is the lack of system units for the
different PIC-types, and the 2 you can download are not finished as well... So if you may have to write-in
the necessary Special Function Registers...
As the current version is compiled with Delphi, I couldn't make
a build for DOS, instead of it, there is a linux port. (maybe if I can find a working replacement
of classes.dcu for free pascal, there will be DOS version again)
And... I can't answer questions about the former versions, as in the last half year I worked only
with/on this new one... so I forgot many things that would be necessary to answer such questions.
|
|
|
|
2005 04.03 |
|
|
As the last release was more than a year ago, I felt that I have to write
something, however the next version is still not finished.
Many of you have asked doubtfully if there will be any further release, and I found some
pages on the web, where Pas2PIC was referred in past tense. So... There will, the project is
not closed, simply I had too little time recently.
If you are interested in more details, originaly I planned to implement support for
PIC18F series, so I was working on it till June or July, but the result was extremely
unstable, and I had to realize that it doesn't worth to work on the code, as it was more and more
difficult to add the new features. So I decided to rewrite the whole thing, bearing in mind
the feedbacks I got, and trying to avoid the mistakes I made. Finally in October I started to
rewrite almost the whole compiler, so now I have a version more flexible, more realiable and consisting
a lot of new features, but not ready to release. I hope, that I can finish it in May.
However this release will contain just a few new things. Linux port planned too.
|
|
|
|
2004 03.07 |
|
The compiler's newest version (0.8.1) can be downloaded.
Unfortunately 0.8x versions proved to be very bugful, so it's
strongly recommended to upgrade to 0.8.1 . Good news, that
you don't need win32 anymore, if it's better for you, the
program can run under Dos.
Thanks a lot for Varsányi Péter, who helped very much to
make this version.
|
|
|
|
2004 03.07 |
|
|
You can download from here the
source of the IDE developped by Nagy László.
|
|
|