Want some pointer to where I can find how to compile C/C++ programs in AOSP

333 views
Skip to first unread message

H Jumogehn

unread,
Oct 17, 2023, 3:53:52 PM10/17/23
to Android Building
Hello,

I tried to search toolchain in AOSP source code.
And I found things below:

aapt2, aidl, arm-linux-androideabi-ld, core-lambda-stubs.jar,
dexdump, lld, mipsel-linux-android-ld, source.properties,
x86_64-linux-android-ld, aapt, aarch64-linux-android-ld, 
apksigner, bcc_compat, d8, i686-linux-android-ld, llvm-rs-cc, 
runtime.properties, split-select, zipalign

But in my experience cross tools are like:

arm-linux-gnueabi-gcc,
arm-linux-gnueabi-ld
arm-linux-gnueabi-ar,
arm-linux-gnueabi-as,

The point is there should exist *-gcc, which is compiler driver.
And there should exist *-ld, *-as, *-collect2.
Those are compiler, linker, asembler, etc.

AOSP looks different than normal embeded linux.
I'd like to learn what is compiler, assembler, linker and compiler driver in AOSP.
Where can I find those information?

And android uses bionic C/C++. Then, I'd like to know what is bionic C/C++ library. And what are the C/C++ include header files.

And if there exist recommended vimrc file for AOSP - which has correct path settings for headers of bionic C/C++.

Thank you very much in advance!

Michael Swartout

unread,
Oct 18, 2023, 5:54:28 PM10/18/23
to android-...@googlegroups.com
Your best bet is to just use the Android NDK. It contains everything for what you are trying to do. Just follow this link: NDK Downloads  |  Android NDK  |  Android Developers.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/1e9a08ad-45fc-444a-8f2f-af10ae860388n%40googlegroups.com.

rjtgu...@gmail.com

unread,
Oct 18, 2023, 5:54:28 PM10/18/23
to Android Building
Hey
The best is to start from reading the guide at https://source.android.com/. Did you read it already? 
Reply all
Reply to author
Forward
0 new messages