What Code Veneer Means

Submitted by Eus
on March 2, 2009 - 1:42am

Tuning into binutils mailing list, I often come across the words `ARM veneer'.
Just today I came across a post giving its definition.

A veneer is a sequence of instructions.

Keywords: definition arm code veneer

What Code Veneer Means?

Dodge trucks (not verified)
on
March 2, 2009 - 2:26am

Veneers are small sections of code generated by the linker and inserted into your program. armlink must generate veneers when a branch involves a destination beyond the branching range of the current state.

The range of a BL instruction is 32MB for ARM, 16MB for Thumb-2, and 4MB for Thumb. A veneer can, therefore, extend the range of the branch by becoming the intermediate target of the instruction and then setting the PC to the destination address. If ARM and Thumb are mixed, theveneer also changes processor state.

What Code Veneer Means?

Dodge trucks (not verified)
on
March 2, 2009 - 2:28am

Veneers are small sections of code generated by the linker and inserted into your program. arm link must generate veneers when a branch involves a destination beyond the branching range of the current state.

The range of a BL instruction is 32MB for ARM, 16MB for Thumb-2, and 4MB for Thumb. A veneer can, therefore, extend the range of the branch by becoming the intermediate target of the instruction and then setting the PC to the destination address. If ARM and Thumb are mixed, the veneer also changes processor state.

Thank you very much for the info!

Eus
on
March 5, 2009 - 4:48am

Hi Ho!

Your information makes code veneer as clear as crystal! :-)

Thank you for your help.

Best regards,
Eus (FSF member #4445)

In this digital era, where computing technology is pervasive,
your freedom depends on the software controlling those computing devices.

Join free software movement today!
It is free as in freedom, not as in free beer!

Join: http://www.fsf.org/jf?referrer=4445

This explanation makes

vibrator
on
March 8, 2009 - 4:55pm

This explanation makes things very clear, thanks for info!

Just what I needed.

Codes are always tricky.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.