Compilation Of C/C++ program in Android


Published on

This Slide Will Introduce You About The Basics Of Compilation On Android Platform.

Published in: Education, Technology
1 Like
  • I'd like to suggest new ios app - CppCode. It's the first and the only offline C/C++ IDE & Compiler on iOS! You can code C/C++ right on your iPhone/iPad without jailbreak and without internet connection. It starts new age of coding-on-the-go! You can find app feature list, screenshots and video on Vimeo/Youtube and even quick start at AppStore:
    Are you sure you want to  Yes  No
    Your message goes here
  • I'd recommend CppDroid - new C/C++ IDE on Android. Compile right on Android device for Android device! It has a lot of included C/C++ examples and tutorials. Blog:, Google Play:
    Are you sure you want to  Yes  No
    Your message goes here
  • nice
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Compilation Of C/C++ program in Android

  1. 1. Name :- Rahul VermaBranch :- CSE 2nd SHIFTRoll No. :- 115365Submitted To :- Mr. Jagdeep Singh
  2. 2. IntroductionWhat is Android? • A software platform and operating system for mobile devices • Android is a software stack for mobile devices that includes an operating system, middleware and key applications. The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language. • Based on the Linux kernel • Developed by Google and later the Open Handset Alliance (OHA) • Allows writing managed code in the Java language • Possibility to write applications in other languages and compiling it to ARM native code (support of Google? No) • Unveiling of the Android platform was announced on 5 November 2007 with the founding of OHA
  3. 3. 2.3 Gingerbread3.0 Honeycomb3.1 Honeycomb3.2 Honeycomb4.0 Ice Cream Sandwich
  4. 4. Platform2.1 HardwareAndroid is not a single piece of hardware; its a complete, end-to-end softwareplatform that can be adapted to work on any number of hardware configurations.Everything is there, from the bootloader all the way up to the applications.
  5. 5. Platform2.2 Operating System(s)• Android uses Linux for its device drivers, memory management, process management, and networking.
  6. 6. Platform2.3 Network ConnectivityIt supports wireless communications using:  GSM mobile-phone technology  3G  Edge  802.11 Wi-Fi networks
  7. 7. Platform2.4 SecurityAndroid is a multi-process system, in which each application (and parts of thesystem) runs in its own process. Most security between applications and thesystem is enforced at the process level through standard Linux facilities, such asuser and group IDs that are assigned to applications.Additional finer-grained security features are provided through a "permission"mechanism that enforces restrictions on the specific operations that a particularprocess can perform, and per-URI permissions for granting ad-hoc access tospecific pieces of data.
  8. 8. Platform2.5 Performance
  9. 9. Platform2.6 Future possibilities• Google Android Sales to Overtake iPhone in 2012• The OHA is committed to make their vision a reality: to deploy the Android platform for every mobile operator, handset manufacturers and developers to build innovative devices• Intel doesn’t want to lose ownership of the netbook market, so they need to prepare for anything, including Android• Fujitsu launched an initiative to offer consulting and engineering expertise to help run Android on embedded hardware, which aside from cellphones, mobile internet devices, and portable media players, could include GPS devices, thin- client computers and set-top boxes.• More Android devices are coming and some will push the envelope even further
  10. 10. Overall evaluation4.1 AdvantagesThere are a host of advantages that Google’s Android will derive from being anopen source software. Some of the advantages include: • The ability for anyone to customize the Google Android platform • The consumer will benefit from having a wide range of mobile applications to choose from since the monopoly will be broken by Google Android • Men will be able to customize a mobile phones using Google Android platform like never before • Features like weather details, opening screen, live RSS feeds and even the icons on the opening screen will be able to be customized • As a result of many mobile phones carrying Google Android, companies will come up with such innovative products like the location • In addition the entertainment functionalities will be taken a notch higher by Google Android being able to offer online real time multiplayer games
  11. 11. C and C++• C++ is a general-purpose programming language with a bias towards systems programming that – is a better C – supports data abstraction – supports object-oriented programming – supports generic programming C:  Functions and structs  Machine model (basic types and operations)  Compilation and linkage model
  12. 12. Missing in C (from a C++ perspective)• Classes and member functions – Use struct and global functions• Derived classes and virtual functions – Use struct , global functions, and pointers to functions – You can do OOP in C, but not cleanly, and why would you want to? – You can do GP in C, but why would you want to?• Templates and inline functions – Use macros• Exceptions – Use error-codes, error-return values, etc.• Function overloading – Give each function a separate name• new/delete – Use malloc()/free()• References – Use pointers• const in constant expressions – Use macros
  13. 13. Have a C programming reference alwayswith you. Study or check on the go!.Complete C language programmingreference from cheat sheets and quickreference cards, to primer languageprogramming tutorials, completereference, code style industryrecommendations, advanced pointertutorials and more.Use the possibilities the mobile bringsyou, allowing to study or check anythingyou want on the go. Dont waste time ontransportation, use your mobile andstudy and check anything you want
  14. 14. Learn C++ Programming right over your Android phone or tablet with this greatapp. Popular videos by Programmers Institute help you to learn C++programming even if you have never programmed before. You get the basicsform the ground level to get you started and on your way in a step by stepfashion.Set you phone or tablet by your computer and let this app help you through thebeginning steps. More apps like this are on the way!
  15. 15. Requirements: Android 2.1+Overview: C4droid is a Ccompiler for Android.Root is not required, but ifyou have rooted your deviceor have enough internalmemory, you can get C++support,
  16. 16. Long click save button to "saveas", long click run to run witharguments.C4droid already has almost full Clanguage support, so you dontneed to wait when it will be added.You can to write yourown applications on the Androidphone, and run them. This app usesTCC and uClibc, so it has fullsupport of ANSI C and somesupport of ISO C99. C4droid canbe used for educational purposesor to practice in C language.
  17. 17. Result of compilation (binary) is placedin"/data/data/com.n0n3m4.droidc/files/temp", because sdcard doesnt havepermission for execution by default.
  18. 18. Some components of C4droidare LGPL-licensed. Youcan download used sourcecode of TCC and uClibc ontheir websites. C4droidincludes Android TerminalEmulator so you can to runyour application comfortably.
  19. 19. Android Market Description SimpleC/C++ compiler / interpreter foreducational purpose.some part of C language is implemented,C++ language support will be done insome future.*. No Internet Connection is required torun the code.Uses internet connection Once when yourun the apponly for licensing purpose.
  20. 20. *. You dont need to root the phone torun the app.Works well on non-rooted devices.If you have any question about the appplease visit or e-mail atdztall96@gmail.comKeywords : c / c++ interpreter compilerscript androideducation code programming languagelearning IDE gcc
  21. 21. The Android NDK is a companion toolto the Android SDK that lets you buildperformance-critical portions of yourapps in native code. It provides headersand libraries that allow you to buildactivities, handle user input, usehardware sensors, access applicationresources, and more, whenprogramming in C or C++. If you writenative code, your applications are stillpackaged into an .apk file and they stillrun inside of a virtual machine on thedevice. The fundamental Androidapplication model does not change.
  22. 22. The NDK provides:* A set of tools and build files used togenerate native code libraries from Cand C++ sources* A way to embed the correspondingnative libraries into an applicationpackage file (.apk) that can be deployedon Android devices* A set of native system headers andlibraries that will be supported in allfuture versions of the Android platform,starting from Android 1.5* Documentation, samples, andtutorials