PowerBasic Console Compiler 6.03l
PowerBasic Console Compiler 6.03l
powerbasic has the ability to compile to both windows and dos. it is a free, open source product released under the gnu gpl. it is based on gpc, the gnu pascal compiler. it has the ability to support both windows and dos applications. powerbasic is a free product released under the gnu gpl. you can download aquasnap pro free download.
an example of a full application using rtos-32 and powerbasic is included in the source code download. please note that it is quite large (800kb) and contains a number of images. if you are running windows xp, windows server 2003, windows server 2008 or windows vista you should be able to run the compiled exe file without problems. a link to the source code can be found here >.
2. download powerbasic (version 6.0, latest version from ) and unzip it to a folder on your hard disk. it will create two folders within the powerbasic folder, one called rtos and another called basic.
5. create a folder in your powerbasic directory called bin and copy the compiled exe file to the bin folder. this will change the current working directory. if you are using a different directory structure then you will need to adjust the bin folder to the correct location.
the powerbasic console compiler is a fully compliant version of the compiler distributed by powerbasic software. i use this version of the compiler as it is the only one that gives me the support i need to run my target platform (rtos-32).
the powerbasic console compiler was originally released by powerbasic software. it was a free download. this is the only version i have tested. i have not seen any documentation on the compiler in the last 10 years.
the same technique can be used to create a console based application for both windows and rtos-32. when you compile a file, the rtos-32 and windows generated dlls are automatically linked into the project. this is a lot easier than creating a project for each environment, and there are some differences in the way each os handles the api calls. you will have to generate the proper dll for each environment.
powerbasic is good for smaller systems which have limited resources. if you are planning a system which will run a gui, then you might be better off with a gui toolkit like qt. powerbasic may be used for rapid development of guis using a gui toolkit. even simple guis are possible with powerbasic.
in the context of this document, the word « platform » refers to a microcontroller running an rtos. the word « computer » refers to a personal computer, not a microcontroller. the documentation provided here is generally sufficient to enable one to write their own compilers for embedded systems. of course, one may find that existing compilers have added features which are required for their systems. these features may be used in the powerbasic compiler.
to use the compiled rtos-32 dll with powerbasic, you must first compile the dll. we suggest using the powerbasic 6.0 console compiler. you can also compile a version for each of the following platforms:
powerbasic does not require any initialization code. if you decide to use powerbasic, you should compile powerbasic with the minimal code to make it run. you will also need to write some initialization code. the.exe file will need to be run once to get it running.