MIDletPascal

From Wikipedia, the free encyclopedia
Jump to: navigation, search
MIDletPascal
MpLogo.gif
MidLetPascal.png
Stable release 3.5 FINAL
Preview release 3.5
Development status Active
Written in C, Java
Operating system Microsoft Windows
Available in English, Spanish, Arabic, French, Polish, Hungarian and Russian
Type Integrated development environment
License GNU GPL (compiler), BSD (IDE)
Website midletpascal.sourceforge.net

MIDletPascal is a Pascal compiler and IDE specifically designed to create software for mobiles. It generates Java bytecode that runs on any Java ME device. In September 2009, Niksa Orlic, who wrote MIDlet pascal, transmitted the source code to the Russian Boolean.name development community for feature development. MIDlet Pascal is now open-source, and hosted at SourceForge.

In February 2013 MIDletPascal 3.5 Final released.

Features[edit]

  • generates low-level, small and fast Java bytecode
  • full Pascal specification support
  • parts of code can be written directly in Java
  • SMS messaging
  • HTTP connectivity
  • user-interface (forms) support
  • multimedia support
  • user-friendly IDE

Hello World[edit]

Because it runs on mobiles that don't have a console, the Hello world program of MIDletPascal is quite different from a normal Pascal hello world.

program HelloWorld;
begin DrawText ('Hello, World!', 0, 0); Repaint; Delay(2000); end.

Issues with Anti-virus[edit]

Current versions of certain anti-virus (Norton, McAfee, ...) see any class file generated by MidletPascal as being a virus, "Trojan. Redbrowser.A", and automatically quarantine the suspected file.

This may be a false positive, because the RedBrowser trojan was written using the MidletPascal tool (see Notes from McAfee).

It seems antiviruses look for some specific class into the jar package. Using an obfuscator as JShrink the midlet won't match with the AV dictionary.

This problem has been fixed in MIDletPascal 3.0 BETA.

See also[edit]

External links[edit]