Test, Measure and Automate Your World
Click on the advert above to visit the company web site

Product category: Design and Development Software
News Release from: Computer Solutions | Subject: Hi-Tech PIC18 PRO C
Edited by the Electronicstalk Editorial Team on 4 October 2007

Compiler creates more compact PIC code

The Hi-Tech PIC18 Pro C compiler uses a new compilation technique known as OSG (Omniscient Code Generator)

The Hi-Tech PIC18 Pro C compiler for the Microchip PIC18 family of microcontrollers, featuring a new compilation technique known as OSG (Omniscient Code Generator), is now available in the UK from Computer Solutions. Unlike compilers which claim to provide global optimisation but which in reality optimise each individual module separately, OCG partially compiles each module and then completes code generation for all modules together at what would otherwise be known as 'link time'.

The result is a substantial reduction in code size, with the additional benefit of allowing the code generator to automatically make many decisions (memory page allocation or pointer allocation, for example) that would otherwise need to be actively managed by the programmer.

The code size reduction achieved by the new system results from a combination of minimised compiled stack sisz, the in-lining of functions not called by others, minimal register save and restore requirements, the stripping out of code for un-used return values, and an optimised start-up code.

In addition, the sprintf() function only needs to include the formats that will be used.

In a typical application, the program size using PIC18 Pro with OCG is only 83% of that using the conventional PIC 18-STD compiler and around half of that using other major manufacturers' compilers.

PIC18 Pro also offers a number of design improvements for the user.

It catches inconsistent variable and object definitions, and truly optimises register allocation over the whole program.

It also provides efficient address space and pointer allocation, manages re-entrant and recursive calls, and allocates the most accessed variables to the fastest accessed memory.

The OCG technology in PICC-18 PRO automatically generates customised code, based on the use of each function in the program.

For example, the C library functions for formatting text strings or output, sprintf() and printf(), can occupy 5Kbyte or more.

PICC-18 Pro's code generator analyses the format strings supplied to these functions to determine the exact set of format specifiers and modifiers actually used by the program, and creates the smallest customised version to meet program requirements.

PICC-18 Pro is compatible with MPLAB, and integrates into Microchip's MPLAB integrated development environment (IDE), as well as most third-party development tools.

It runs on multiple platforms including Windows (2000, XP) Linux and Mac OS X.

A 30 day evaluation version of the PIC-18 PRO compiler is available for engineers wishing to evaluate this new release.

OCG will be rolled out over future months for use on PIC, dsPIC, AVR, 8051 and ARM compilers.

Computer Solutions: contact details and other news
Email this article to a colleague
Register for the free Electronicstalk email newsletter

Electronicstalk Home Page

Related Business News

Icoa Is Partnering With Anchorfree To...
...Enhance And Monetize Thousands Of Wi-fi Hotspots. Icoa, Inc., a national provider of wireless broadband Internet access and managed network services in high-traffic public locations, and AnchorFree Inc., a rapidly growing Wi-Fi community powered by advertising, have announced today that they are partne

The Johns Hopkins Hospital and Transplant...
...Software Maker TeleResults Reach Major Milestone. One Year After Deployment of State-of-the-Art EMR Solution, Leading Transplant Center Reports Dramatic Return on Investment.

Microsoft's Silverlight makes its awaited debut
One of Microsoft's most anticipated new products is a free, tiny download that will run on Windows, Mac and eventually Linux, and went from...

Microsoft Releases Silverlight 1.0
Microsoft today released to the Web (RTW) Silverlightâ„¢ 1.0, a cross-browser, cross-platform plug-in for delivering richer user experiences on the Web.

Help for the Poor Could Solve Many District Problems
With all the high-tech crime-fighting gadgets and gizmos being deployed throughout the District in the past couple of years, you'd expect to see at least a dent in violent crime.

Search the Pro-Talk network of sites

Test, Measure and Automate Your World