Compilation Of C/C++ program in Android
Upcoming SlideShare
Loading in...5
×
 

Compilation Of C/C++ program in Android

on

  • 18,365 views

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

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

Statistics

Views

Total Views
18,365
Views on SlideShare
18,365
Embed Views
0

Actions

Likes
1
Downloads
124
Comments
2

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • 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: http://cppdroid.blogspot.com, Google Play: https://play.google.com/store/apps/details?id=name.antonsmirnov.android.cppdroid
    Are you sure you want to
    Your message goes here
    Processing…
  • nice
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Compilation Of C/C++ program in Android Compilation Of C/C++ program in Android Presentation Transcript

  • Name :- Rahul VermaBranch :- CSE 2nd SHIFTRoll No. :- 115365Submitted To :- Mr. Jagdeep Singh
  • 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
  • 2.3 Gingerbread3.0 Honeycomb3.1 Honeycomb3.2 Honeycomb4.0 Ice Cream Sandwich
  • 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.
  • Platform2.2 Operating System(s)• Android uses Linux for its device drivers, memory management, process management, and networking.
  • Platform2.3 Network ConnectivityIt supports wireless communications using:  GSM mobile-phone technology  3G  Edge  802.11 Wi-Fi networks
  • 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.
  • Platform2.5 Performance
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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!
  • 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,
  • 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.
  • Result of compilation (binary) is placedin"/data/data/com.n0n3m4.droidc/files/temp", because sdcard doesnt havepermission for execution by default.
  • 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.
  • 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.
  • *. You dont need to root the phone torun the app.Works well on non-rooted devices.If you have any question about the appplease visithttp://www.dztall.com or e-mail atdztall96@gmail.comKeywords : c / c++ interpreter compilerscript androideducation code programming languagelearning IDE gcc
  • 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.
  • 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