iOS devices (ARM) for inline assembler - C++Builder (bcciosarm)

Posted by on in Blogs
Tomohiro Takahashi, Embarcadero Japan's Software Consultant and Evangelist, has written a blog post that shows you how to use inline assembler with C++Builder XE5 Update #2 on iOS devices. The blog post is written in Japanese but you can use Google Translate to get the a good English translation (or other spoken languages). The original blog post is at The Google Translate automatic translation link is Here is part of the blog post in English (quoted so you know the text is from Google Translate) along with a couple of images that are included in the blog post.

"First 1., I try to create in the target iOS Device a static library to perform a simple addition. I've implemented the function (int x, int y) that int MyAdd this time."

"Then 2., In order to check in advance the assembly code bcciosarm generates, let's see generated bcciosarm command the assembler code of AT&T format for the source code above. For example, S-Bcciosarm FILE1.C I run the command."

"In 3, z = x + y;. So let's rewrite the inline assembler of its own code. The basic structure is as follows."
__asm__ (assembler template: output operands: input operands: used registers);"

"Generated by building a static library to 4. Last MyCppProject.a I tried to call from the iOS app of C++Builder or Delphi, the 10 + 20 = 30 was labeled!"

You can find additional information about using AT&T inline assembler with C++Builder in my blog post (January 22, 2013) titled "Adding Inline Assembler to your C++Builder 64-bit applications" at

Great Job Takahashi-san!

Gold User, Rank: 1, Points: 2466
David Intersimone (known to many as David I.) is a passionate and innovative software industry veteran-often referred to as a developer icon-who extols and educates the world on Embarcadero developer tools. He shares his visions as an active member of the industry speaking circuit and is tapped as an expert source by the media. He is a long-standing champion of architects, developers and database professionals and works to ensure that their needs are folded into Embarcadero's strategic product plans. David holds a bachelor's degree in computer science from California Polytechnic State University at San Luis Obispo, California.


Check out more tips and tricks in this development video: