Recent

Author Topic: PicPas, Pascal compiler for Microchip PIC  (Read 115743 times)

Edson

  • Hero Member
  • *****
  • Posts: 1302
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #105 on: August 25, 2017, 09:43:07 pm »
Picpas has been updated to the 0.7.5 version:  https://github.com/t-edson/PicPas

Support for 32 bits numbers, implemented.

Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Edson

  • Hero Member
  • *****
  • Posts: 1302
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #106 on: August 27, 2017, 08:28:46 pm »
Recently, I have tested the size of code generated by  several PIC compilers, in comparison with PicPas. The same sample program (a simple light control: https://github.com/t-edson/PicPas/tree/0.7.5/Comparacion%20PicPas-MikroC-CCS) was compiled in these programs:

The result was:

MikroC
======
RAM: 18 bytes   FLASH: 126 words

CCS
=====
RAM: 7 bytes   FLASH: 135 words

JAL
========
RAM: 9 bytes  FLASH: 117 words

Pic Micro Pacal
===============
RAM: 4 bytes FLASH: 104 words   

PicPas
======
RAM: 2 bytes   FLASH: 64 words

And the winner is: PicPas :D
« Last Edit: August 27, 2017, 11:19:00 pm by Edson »
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Edson

  • Hero Member
  • *****
  • Posts: 1302
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #107 on: September 18, 2017, 10:57:45 pm »
Picpas 0.7.7, the unique open-source Pascal compiler for mid range PIC, has been released:  https://github.com/t-edson/PicPas

In this version, support for defining new devices using directives.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

jaromir

  • Newbie
  • Posts: 2
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #108 on: September 28, 2017, 04:21:10 pm »
Hello,
I noticed there are no Linux precompiled binaries in few last releases. I'd compile them on my own, but unfortunately I'm not clear about how to compile it.
Could you, please, clarify how to compile it?

Edson

  • Hero Member
  • *****
  • Posts: 1302
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #109 on: September 28, 2017, 05:11:28 pm »
Hello,
I noticed there are no Linux precompiled binaries in few last releases. I'd compile them on my own, but unfortunately I'm not clear about how to compile it.
Could you, please, clarify how to compile it?

Oh Yes. Most of the users of PicPas just use Windows, so I don't update to much the Linux version.
But building the project is easy. PicPas use just a few libraries:

* SynFacilUtils
* MisUtils
* MiConfig
* PicUtils
* Xpres
* UtilsGrilla

All of them, are availables on my GitHub site. Check the versions used.

These libraries don't include package. They are only files in folders that need to be included when compiling PicPas.

Tell me if you have some problem when compiling.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

jaromir

  • Newbie
  • Posts: 2
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #110 on: September 28, 2017, 06:44:43 pm »
So I need Lazarus with those libraries, OK I got it now. I looked for a makefile or build script, that is why I was confused.
I'll try it and share results/comments.

Edson

  • Hero Member
  • *****
  • Posts: 1302
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #111 on: September 28, 2017, 06:54:55 pm »
OK I have compiled a version for Ubuntu. It's in the 0.7.8 trunk version: https://github.com/t-edson/PicPas/tree/0.7.8

It's using an old style skin.  PicPas support themes  8-)
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Edson

  • Hero Member
  • *****
  • Posts: 1302
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #112 on: October 03, 2017, 05:14:17 pm »
PicPas 0.7.8 has been released: https://github.com/t-edson/PicPas

Implemented the TYPE section:

Code: Pascal  [Select][+][-]
  1. TYPE
  2.   my_type = byte;
  3.   TArrBytes = array[5] of byte;
  4.  

Only arrays of bytes supported by now.  :-X

Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Sender

  • Newbie
  • Posts: 3
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #113 on: October 24, 2017, 11:26:50 pm »
Hi Edison, PicPas Cool project.
Change please settings in Main Form (TfrmPrincipal and TConfig dialog):
 
object inspector\Position = poScreenCenter (or TConfig Position = poMainFormCenter)

Thaks
Best regards

Edson

  • Hero Member
  • *****
  • Posts: 1302
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #114 on: October 25, 2017, 01:05:29 am »
Change please settings in Main Form (TfrmPrincipal and TConfig dialog):
 
object inspector\Position = poScreenCenter (or TConfig Position = poMainFormCenter)

OK. It will be changed in the 0.8.0 version, that is going to be released soon.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Edson

  • Hero Member
  • *****
  • Posts: 1302
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #115 on: November 04, 2017, 06:16:13 am »
PicPas (https://github.com/t-edson/PicPas) the Open Source Pascal compiler for the Middle range Microchip Microcontrollers, is progressing fast. Now in the version 0.8.0. includes a software debugger and simulator. The simulation can be done in real time, for the maximum clock frequency of the device, in a simple PC.
« Last Edit: November 04, 2017, 06:34:29 pm by Edson »
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Sender

  • Newbie
  • Posts: 3
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #116 on: November 05, 2017, 05:08:29 pm »
Hi Edson, very good. The same problem in debug window (bad shoving and TEXT).Look please in all Forms setting.Thx.


« Last Edit: November 05, 2017, 05:11:04 pm by Sender »

Edson

  • Hero Member
  • *****
  • Posts: 1302
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #117 on: November 05, 2017, 05:51:05 pm »
I see. The Interfaz is not prepared, in some parts to adapt to the font size. It's sttange. I expected the StringGrid used, would adapt well to the font size. Maybe you have set a big font on your system.

Did you see the same problem in the settings form? Can you send a picture?
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Sender

  • Newbie
  • Posts: 3
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #118 on: November 05, 2017, 09:09:53 pm »
Yes.Problem is system font setting (125%).
« Last Edit: November 05, 2017, 11:40:29 pm by Sender »

Edson

  • Hero Member
  • *****
  • Posts: 1302
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #119 on: November 06, 2017, 06:45:55 pm »
I see most of the forms are OK, considering the big size of the font. Maybe the simulator window, must be reviewed and resized. I will check.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

 

TinyPortal © 2005-2018