TI PRU Compiler 2.1.x Tips and Tricks

TI PRU Compiler 2.1.x tips and tricks covering ABI, memory models, data types, and optimization options for PRU cores.


TI PRU Compiler 2.1.x Tips and Tricks - cover page
Brand
TI
Category
Industrial Supply
Document type
Other
Language
English
Pages
38
File format
PDF
File size
268 KB
Published
30 November, 2026
Updated
30 November, 2026
MD5 checksum
0D48617F3D81B5FAA663DBDE0D06DA36

About this manual

This presentation covers the C/C++ compiler for the PRU cores found in most Sitara devices such as AM335x, AM437x, and AM572x. It explains where the compiler fits in the industrial communication subsystem and how the ICSS contains two or four PRU cores.

The document describes compiler version 2.1.x, including its single EABI ABI, code and data memory models, data types, sign extension, floating-point handling, optimization levels, and section names.

What's inside

  • Where the PRU Compiler Fits In
  • Why to Support Everything in C/C++
  • EABI Only
  • Memory Models
  • Data Types
  • Signness of char
  • Avoid Sign Extension
  • Avoid Floating Point
  • Optimization Option Range
  • Initialized Sections

Specifications

Compiler version2.1.x
Supported ABIEABI (Extended ABI)
Code memory modelOne code memory model; all code within 16 bits
Data pointer size32 bits
Code pointer size16 bits
Floating-point hardwareNone; floating-point operations are done in software

Frequently asked questions

What ABI does the PRU compiler support?

Only one ABI is supported: EABI (Extended ABI). PRU executables can be read by Linux ELF tools.

How many PRU cores does the ICSS contain?

The ICSS contains two or four PRU cores.

Does the PRU have floating-point hardware?

No. All floating-point operations are done in software, which is expensive in code size, cycles, and power.

What does the --opt_level=2 option do?

It performs function-level optimization; --opt_level=3 covers files and --opt_level=4 covers between files and libraries.

Download PDF (268 KB)

More TI Manuals


View all TI manuals →