Turbo51 - Free Pascal compiler for 8051
|
Turbo51 is a free Pascal compiler for the 8051 family of microcontrollers. If you are programming for the 8051 family of microcontrollers and you like Pascal programming language then you will love Turbo51.
Main features:
- Win32 console application
- Fast single pass optimizing compiler
- Borland Turbo Pascal 7 syntax
- Full floating point support
- Mixed Pascal and assembler programming
- Full use of register banks
- Advanced multi-pass optimizer
- Smart linker
- Generates compact high quality code
- Output formats: Binary, Intel HEX, OMF-51
- Assembler source code generation
- Source-level debugging with
absolute OMF-51 extended object file
|
Used optimizations:
- Constant folding
- Integer arithmetic optimizations
- Dead code elimination
- Branch elimination
- Code-block reordering
- Loop-invariant code motion
- Loop inversion
- Induction variable elimination
- Instruction selection
- Instruction combining
- Register allocation
- Common subexpression elimination
- Peephole optimization
|
Turbo51 is released as a freeware. You can use Turbo51 for hobby projects and for serious work. Check documentation pages and code examples that show the syntax, features and generated files. This should be enough to start a 8051 project development with Turbo51. And if you are still missing something or have a problem you can always ask for help.
If you are already familiar with 8051 assembly language programming you can start with Turbo51 as 8051 assembly language compiler and then add some Pascal statements until you become familiar with Turbo51 and Pascal syntax. A good approach is also to compile some Pascal code and then check generated code (ASM file). This way you can learn assembly language, get some ideas on how to write effective code and become familiar with the compiler. Turbo51, like many popular C compilers for 8051, generates optimized code and supports source-level debugging with OMF object file.
Program Turbo51; { 8051 Pascal compiler }
Uses FastCompiler, AdvancedOptimizations, SmartLinker, AseemblerFileGenerator;
begin Download; Configure; Repeat UseIt; While ThereIsAProblem do begin CheckCode; CheckDocumentation; TyrAgain; Case ProblemSolved of True: Break; else AskForHelp; end; end; If UpdateAvailable then Update; { Latest version: 0.1.3.2 }
If Satisfied then Donate ($20); until NoMoreProjects; end.
|
|