SlideShare a Scribd company logo
Submit Search
Upload
gcc and friends
Report
Share
Anil Kumar Pugalia
Linux Geek and Open Source Hardware & Software Freak, Corporate Trainer, Entrepreneur in Automation
Follow
•
2 likes
•
14,286 views
1
of
11
gcc and friends
•
2 likes
•
14,286 views
Report
Share
Technology
GNU C Compiler and its binary utility friends like as, ld, ...
Read more
Anil Kumar Pugalia
Linux Geek and Open Source Hardware & Software Freak, Corporate Trainer, Entrepreneur in Automation
Follow
Recommended
BeagleBone Black Bootloaders by
BeagleBone Black Bootloaders
SysPlay eLearning Academy for You
4.6K views
•
24 slides
BeagleBone Black Bootloaders by
BeagleBone Black Bootloaders
SysPlay eLearning Academy for You
4K views
•
27 slides
U-Boot presentation 2013 by
U-Boot presentation 2013
Wave Digitech
18.7K views
•
28 slides
Linux Porting by
Linux Porting
Anil Kumar Pugalia
17.5K views
•
29 slides
U boot porting guide for SoC by
U boot porting guide for SoC
Macpaul Lin
11.9K views
•
32 slides
Memory management in Linux kernel by
Memory management in Linux kernel
Vadim Nikitin
35.4K views
•
24 slides
More Related Content
What's hot
SPI Drivers by
SPI Drivers
SysPlay eLearning Academy for You
13.2K views
•
20 slides
Linux Initialization Process (2) by
Linux Initialization Process (2)
shimosawa
6.8K views
•
44 slides
U Boot or Universal Bootloader by
U Boot or Universal Bootloader
Satpal Parmar
21.1K views
•
25 slides
Bootloaders (U-Boot) by
Bootloaders (U-Boot)
Omkar Rane
637 views
•
18 slides
Linux Kernel Overview by
Linux Kernel Overview
Anil Kumar Pugalia
26.7K views
•
20 slides
Linux Kernel Booting Process (2) - For NLKB by
Linux Kernel Booting Process (2) - For NLKB
shimosawa
8.3K views
•
123 slides
What's hot
(20)
SPI Drivers by SysPlay eLearning Academy for You
SPI Drivers
SysPlay eLearning Academy for You
•
13.2K views
Linux Initialization Process (2) by shimosawa
Linux Initialization Process (2)
shimosawa
•
6.8K views
U Boot or Universal Bootloader by Satpal Parmar
U Boot or Universal Bootloader
Satpal Parmar
•
21.1K views
Bootloaders (U-Boot) by Omkar Rane
Bootloaders (U-Boot)
Omkar Rane
•
637 views
Linux Kernel Overview by Anil Kumar Pugalia
Linux Kernel Overview
Anil Kumar Pugalia
•
26.7K views
Linux Kernel Booting Process (2) - For NLKB by shimosawa
Linux Kernel Booting Process (2) - For NLKB
shimosawa
•
8.3K views
OSv Unikernel — Optimizing Guest OS to Run Stateless and Serverless Apps in t... by ScyllaDB
OSv Unikernel — Optimizing Guest OS to Run Stateless and Serverless Apps in t...
ScyllaDB
•
3.8K views
Bootloaders by Anil Kumar Pugalia
Bootloaders
Anil Kumar Pugalia
•
10K views
Introduction to Linux Kernel by Quontra Solutions by QUONTRASOLUTIONS
Introduction to Linux Kernel by Quontra Solutions
QUONTRASOLUTIONS
•
1.5K views
Arm device tree and linux device drivers by Houcheng Lin
Arm device tree and linux device drivers
Houcheng Lin
•
17.5K views
Introduction to Modern U-Boot by GlobalLogic Ukraine
Introduction to Modern U-Boot
GlobalLogic Ukraine
•
1.8K views
Luca Ceresoli - Buildroot vs Yocto: Differences for Your Daily Job by linuxlab_conf
Luca Ceresoli - Buildroot vs Yocto: Differences for Your Daily Job
linuxlab_conf
•
1.1K views
Introduction to Linux Drivers by Anil Kumar Pugalia
Introduction to Linux Drivers
Anil Kumar Pugalia
•
64.7K views
Board Bringup by Anil Kumar Pugalia
Board Bringup
Anil Kumar Pugalia
•
28.7K views
Toolchain by Anil Kumar Pugalia
Toolchain
Anil Kumar Pugalia
•
15K views
Linux Kernel Booting Process (1) - For NLKB by shimosawa
Linux Kernel Booting Process (1) - For NLKB
shimosawa
•
12.5K views
Embedded Linux BSP Training (Intro) by RuggedBoardGroup
Embedded Linux BSP Training (Intro)
RuggedBoardGroup
•
781 views
USB Drivers by Anil Kumar Pugalia
USB Drivers
Anil Kumar Pugalia
•
42.9K views
Spi drivers by pradeep_tewani
Spi drivers
pradeep_tewani
•
415 views
Xen and the art of embedded virtualization (ELC 2017) by Stefano Stabellini
Xen and the art of embedded virtualization (ELC 2017)
Stefano Stabellini
•
25.9K views
Viewers also liked
Embedded C by
Embedded C
Anil Kumar Pugalia
25.7K views
•
20 slides
References by
References
Anil Kumar Pugalia
21.8K views
•
8 slides
Kernel Debugging & Profiling by
Kernel Debugging & Profiling
Anil Kumar Pugalia
18.8K views
•
14 slides
Block Drivers by
Block Drivers
Anil Kumar Pugalia
38.4K views
•
21 slides
File System Modules by
File System Modules
Anil Kumar Pugalia
25K views
•
27 slides
Serial Drivers by
Serial Drivers
SysPlay eLearning Academy for You
17.1K views
•
13 slides
Viewers also liked
(14)
Embedded C by Anil Kumar Pugalia
Embedded C
Anil Kumar Pugalia
•
25.7K views
References by Anil Kumar Pugalia
References
Anil Kumar Pugalia
•
21.8K views
Kernel Debugging & Profiling by Anil Kumar Pugalia
Kernel Debugging & Profiling
Anil Kumar Pugalia
•
18.8K views
Block Drivers by Anil Kumar Pugalia
Block Drivers
Anil Kumar Pugalia
•
38.4K views
File System Modules by Anil Kumar Pugalia
File System Modules
Anil Kumar Pugalia
•
25K views
Serial Drivers by SysPlay eLearning Academy for You
Serial Drivers
SysPlay eLearning Academy for You
•
17.1K views
PCI Drivers by Anil Kumar Pugalia
PCI Drivers
Anil Kumar Pugalia
•
44.5K views
Network Drivers by Anil Kumar Pugalia
Network Drivers
Anil Kumar Pugalia
•
39.4K views
Interrupts by Anil Kumar Pugalia
Interrupts
Anil Kumar Pugalia
•
47.7K views
I2C Drivers by SysPlay eLearning Academy for You
I2C Drivers
SysPlay eLearning Academy for You
•
28.8K views
BeagleBoard-xM Bootloaders by SysPlay eLearning Academy for You
BeagleBoard-xM Bootloaders
SysPlay eLearning Academy for You
•
7.3K views
Platform Drivers by SysPlay eLearning Academy for You
Platform Drivers
SysPlay eLearning Academy for You
•
17.6K views
Character Drivers by Anil Kumar Pugalia
Character Drivers
Anil Kumar Pugalia
•
56.7K views
File Systems by Anil Kumar Pugalia
File Systems
Anil Kumar Pugalia
•
18K views
Similar to gcc and friends
GNU Compiler Collection - August 2005 by
GNU Compiler Collection - August 2005
Saleem Ansari
1.7K views
•
17 slides
Porting To Symbian by
Porting To Symbian
Mark Wilcox
457 views
•
25 slides
3 Open-Source-SYCL-Intel-Khronos-EVS-Workshop_May19.pdf by
3 Open-Source-SYCL-Intel-Khronos-EVS-Workshop_May19.pdf
JunZhao68
9 views
•
20 slides
From gcc to the autotools by
From gcc to the autotools
Thierry Gayet
604 views
•
61 slides
The Hitchhiker's Guide to Faster Builds. Viktor Kirilov. CoreHard Spring 2019 by
The Hitchhiker's Guide to Faster Builds. Viktor Kirilov. CoreHard Spring 2019
corehard_by
5.1K views
•
73 slides
GCC by
GCC
Anshul Sharma
636 views
•
5 slides
Similar to gcc and friends
(20)
GNU Compiler Collection - August 2005 by Saleem Ansari
GNU Compiler Collection - August 2005
Saleem Ansari
•
1.7K views
Porting To Symbian by Mark Wilcox
Porting To Symbian
Mark Wilcox
•
457 views
3 Open-Source-SYCL-Intel-Khronos-EVS-Workshop_May19.pdf by JunZhao68
3 Open-Source-SYCL-Intel-Khronos-EVS-Workshop_May19.pdf
JunZhao68
•
9 views
From gcc to the autotools by Thierry Gayet
From gcc to the autotools
Thierry Gayet
•
604 views
The Hitchhiker's Guide to Faster Builds. Viktor Kirilov. CoreHard Spring 2019 by corehard_by
The Hitchhiker's Guide to Faster Builds. Viktor Kirilov. CoreHard Spring 2019
corehard_by
•
5.1K views
GCC by Anshul Sharma
GCC
Anshul Sharma
•
636 views
Userspace drivers-2016 by Chris Simmonds
Userspace drivers-2016
Chris Simmonds
•
1.9K views
Developing Applications for Beagle Bone Black, Raspberry Pi and SoC Single Bo... by ryancox
Developing Applications for Beagle Bone Black, Raspberry Pi and SoC Single Bo...
ryancox
•
7.6K views
Challenges in GPU compilers by AnastasiaStulova
Challenges in GPU compilers
AnastasiaStulova
•
151 views
C# Production Debugging Made Easy by Alon Fliess
C# Production Debugging Made Easy
Alon Fliess
•
4K views
Embedding Qt by FSCONS
Embedding Qt
FSCONS
•
1.3K views
C Under Linux by mohan43u
C Under Linux
mohan43u
•
1.6K views
Advance Android Application Development by Ramesh Prasad
Advance Android Application Development
Ramesh Prasad
•
3.3K views
Defcon 22 - Stitching numbers - generating rop payloads from in memory numbers by Alexandre Moneger
Defcon 22 - Stitching numbers - generating rop payloads from in memory numbers
Alexandre Moneger
•
806 views
不深不淺,帶你認識 LLVM (Found LLVM in your life) by Douglas Chen
不深不淺,帶你認識 LLVM (Found LLVM in your life)
Douglas Chen
•
401 views
Abhishek lingineni by abhishekl404
Abhishek lingineni
abhishekl404
•
529 views
CPlusPus by rasen58
CPlusPus
rasen58
•
638 views
#Include os - From bootloader to REST API with the new C++ by IncludeOS
#Include os - From bootloader to REST API with the new C++
IncludeOS
•
4.9K views
AAME ARM Techcon2013 003v02 Software Development by Anh Dung NGUYEN
AAME ARM Techcon2013 003v02 Software Development
Anh Dung NGUYEN
•
1.7K views
Creating a Plug-In Architecture by ondrejbalas
Creating a Plug-In Architecture
ondrejbalas
•
11.4K views
More from Anil Kumar Pugalia
File System Modules by
File System Modules
Anil Kumar Pugalia
21K views
•
37 slides
Kernel Debugging & Profiling by
Kernel Debugging & Profiling
Anil Kumar Pugalia
6K views
•
14 slides
Processes by
Processes
Anil Kumar Pugalia
7K views
•
33 slides
System Calls by
System Calls
Anil Kumar Pugalia
4.2K views
•
17 slides
Introduction to Linux by
Introduction to Linux
Anil Kumar Pugalia
4K views
•
33 slides
Embedded Software Design by
Embedded Software Design
Anil Kumar Pugalia
7K views
•
29 slides
More from Anil Kumar Pugalia
(20)
File System Modules by Anil Kumar Pugalia
File System Modules
Anil Kumar Pugalia
•
21K views
Kernel Debugging & Profiling by Anil Kumar Pugalia
Kernel Debugging & Profiling
Anil Kumar Pugalia
•
6K views
Processes by Anil Kumar Pugalia
Processes
Anil Kumar Pugalia
•
7K views
System Calls by Anil Kumar Pugalia
System Calls
Anil Kumar Pugalia
•
4.2K views
Introduction to Linux by Anil Kumar Pugalia
Introduction to Linux
Anil Kumar Pugalia
•
4K views
Embedded Software Design by Anil Kumar Pugalia
Embedded Software Design
Anil Kumar Pugalia
•
7K views
Playing with R L C Circuits by Anil Kumar Pugalia
Playing with R L C Circuits
Anil Kumar Pugalia
•
2.8K views
Audio Drivers by Anil Kumar Pugalia
Audio Drivers
Anil Kumar Pugalia
•
20.8K views
Video Drivers by Anil Kumar Pugalia
Video Drivers
Anil Kumar Pugalia
•
23.4K views
Mobile Hacking using Linux Drivers by Anil Kumar Pugalia
Mobile Hacking using Linux Drivers
Anil Kumar Pugalia
•
6K views
Shell Scripting by Anil Kumar Pugalia
Shell Scripting
Anil Kumar Pugalia
•
6.2K views
Functional Programming with LISP by Anil Kumar Pugalia
Functional Programming with LISP
Anil Kumar Pugalia
•
6.1K views
Power of vi by Anil Kumar Pugalia
Power of vi
Anil Kumar Pugalia
•
3K views
"make" system by Anil Kumar Pugalia
"make" system
Anil Kumar Pugalia
•
4.2K views
Hardware Design for Software Hackers by Anil Kumar Pugalia
Hardware Design for Software Hackers
Anil Kumar Pugalia
•
1.7K views
RPM Building by Anil Kumar Pugalia
RPM Building
Anil Kumar Pugalia
•
4K views
Linux User Space Debugging & Profiling by Anil Kumar Pugalia
Linux User Space Debugging & Profiling
Anil Kumar Pugalia
•
6.5K views
Linux Network Management by Anil Kumar Pugalia
Linux Network Management
Anil Kumar Pugalia
•
11.3K views
System Calls by Anil Kumar Pugalia
System Calls
Anil Kumar Pugalia
•
9.7K views
Timers by Anil Kumar Pugalia
Timers
Anil Kumar Pugalia
•
6.5K views
Recently uploaded
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava... by
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
ShapeBlue
48 views
•
17 slides
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha... by
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
ShapeBlue
74 views
•
18 slides
DRBD Deep Dive - Philipp Reisner - LINBIT by
DRBD Deep Dive - Philipp Reisner - LINBIT
ShapeBlue
62 views
•
21 slides
Igniting Next Level Productivity with AI-Infused Data Integration Workflows by
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software
344 views
•
86 slides
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ... by
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
ShapeBlue
65 views
•
28 slides
Don’t Make A Human Do A Robot’s Job! : 6 Reasons Why AI Will Save Us & Not De... by
Don’t Make A Human Do A Robot’s Job! : 6 Reasons Why AI Will Save Us & Not De...
Moses Kemibaro
29 views
•
38 slides
Recently uploaded
(20)
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava... by ShapeBlue
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
ShapeBlue
•
48 views
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha... by ShapeBlue
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
ShapeBlue
•
74 views
DRBD Deep Dive - Philipp Reisner - LINBIT by ShapeBlue
DRBD Deep Dive - Philipp Reisner - LINBIT
ShapeBlue
•
62 views
Igniting Next Level Productivity with AI-Infused Data Integration Workflows by Safe Software
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software
•
344 views
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ... by ShapeBlue
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
ShapeBlue
•
65 views
Don’t Make A Human Do A Robot’s Job! : 6 Reasons Why AI Will Save Us & Not De... by Moses Kemibaro
Don’t Make A Human Do A Robot’s Job! : 6 Reasons Why AI Will Save Us & Not De...
Moses Kemibaro
•
29 views
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive by Network Automation Forum
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Network Automation Forum
•
46 views
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ... by Jasper Oosterveld
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...
Jasper Oosterveld
•
28 views
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P... by ShapeBlue
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
ShapeBlue
•
82 views
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue by ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
ShapeBlue
•
96 views
"Surviving highload with Node.js", Andrii Shumada by Fwdays
"Surviving highload with Node.js", Andrii Shumada
Fwdays
•
40 views
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda... by ShapeBlue
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
ShapeBlue
•
63 views
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue by ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
ShapeBlue
•
96 views
Microsoft Power Platform.pptx by Uni Systems S.M.S.A.
Microsoft Power Platform.pptx
Uni Systems S.M.S.A.
•
67 views
Network Source of Truth and Infrastructure as Code revisited by Network Automation Forum
Network Source of Truth and Infrastructure as Code revisited
Network Automation Forum
•
42 views
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院 by IttrainingIttraining
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
IttrainingIttraining
•
80 views
Uni Systems for Power Platform.pptx by Uni Systems S.M.S.A.
Uni Systems for Power Platform.pptx
Uni Systems S.M.S.A.
•
58 views
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue by ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
ShapeBlue
•
46 views
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ... by ShapeBlue
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...
ShapeBlue
•
83 views
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ... by ShapeBlue
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...
ShapeBlue
•
77 views
gcc and friends
1.
© 2010-15 SysPlay
Workshops <workshop@sysplay.in> All Rights Reserved. gcc & Friends
2.
2© 2010-15 SysPlay
Workshops <workshop@sysplay.in> All Rights Reserved. What to Expect? What is 'gcc'? Internals of 'gcc' How to use 'gcc'? Friends of 'gcc'
3.
3© 2010-15 SysPlay
Workshops <workshop@sysplay.in> All Rights Reserved. What is 'gcc'? GNU C Compiler Open Source Compiler for C & C++ Along with standard headers & libraries Rather a collection of tools Corresponding to various compiler stages Various other compilers built using it Cross Compilers for different architectures
4.
4© 2010-15 SysPlay
Workshops <workshop@sysplay.in> All Rights Reserved. 'gcc': Internals Decoded Pre Processor ICG (machine independent) ICG (machine dependent) Assembler (as) Linker (ld) .c .i IC(parse trees, ...) .S .o .exe gcc core gcc wrapper gcc -S gcc -c gcc gcc -E
5.
5© 2010-15 SysPlay
Workshops <workshop@sysplay.in> All Rights Reserved. Using GNU C Compiler gcc file.c → Creates the executable a.out gcc file.c -o file gcc -E file.c → Pre-process only gcc -S file.c → Generate assembly code gcc -c file.c → Create object code gcc -I<hdrs_path> file.c gcc -L<libs_path> file.c -l<lib> gcc -D<define> file.c gcc -On file.c, n = 0, 1, 2, 3, s, fast, g gcc -M file.c gcc -MM file.c gcc -T <linker_script> file.c gcc -Wl,<linker_option> file.c ... (including many architecture specific flags)
6.
6© 2010-15 SysPlay
Workshops <workshop@sysplay.in> All Rights Reserved. Default Compiler Defines Trick to find out (#gcc #define) gcc -E -dM -xc /dev/null | sort Also gcc -E -dM -xc++ /dev/null | sort gcc -E -dM -xc++ -std=c++0x /dev/null | sort
7.
7© 2010-15 SysPlay
Workshops <workshop@sysplay.in> All Rights Reserved. Standard Paths Standard Headers Path: /usr/include/ Standard Libraries Path: /usr/lib/ Library Prefix: lib Standard Headers stdio.h, strings.h, math.h, ... Standard Libraries libc, libm, … Where is the code of printf?
8.
8© 2010-15 SysPlay
Workshops <workshop@sysplay.in> All Rights Reserved. Friends of 'gcc' Preprocessor: cpp Assembler: as Linker: ld Name Lister: nm Disassembler: objdump Archiver: ar Print strings from files: strings ...
9.
9© 2010-15 SysPlay
Workshops <workshop@sysplay.in> All Rights Reserved. What all have we learnt? gcc: GNU C Compiler Standard Headers & Libraries Collection of tools Usage of 'gcc' Friends of 'gcc'
10.
10© 2010-15 SysPlay
Workshops <workshop@sysplay.in> All Rights Reserved. Any Queries?
11.
11© 2010-15 SysPlay
Workshops <workshop@sysplay.in> All Rights Reserved. Advanced Topics Shared library vs Archive Linking, Library Function Call, ... Defining your own headers Creating a shared library Creating an archive