Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about dwarf

Read more about dwarf

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - dwarf

How do I find out where main() is defined in a big project?

Let's say I have the following program (a.c): #include <stdio.h> void f() { printf("Hello, world!"); } int main(void) { f(); return 0; } $ gcc -g a.c Having a.out, how ...
test-img

x-yuri

c

objdump

dwarf

nm

readelf

Votes: 0

Answers: 2

Latest Answer

You can use gdb. Probably there's a better command, anyway I know of: $ gdb -batch -ex "info function main" a.out All functions matching regular expression "main": File a.c: 8: ...
test-img

KamilCuk

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved