Memory layout of C programs | GeeksforGeeks

Поділитися
Вставка
  • Опубліковано 18 жов 2024

КОМЕНТАРІ • 42

  • @rahulbathini2214
    @rahulbathini2214 3 роки тому +1

    This is a good effort, but I find this link a lot clearer
    "(255) C Programming Tutorial 1 : Memory Layout of a C / C++ Program : Think Aloud Academy - UA-cam"

  • @utkarshkothimbire1484
    @utkarshkothimbire1484 2 роки тому

    Thank you for the short and crips description.

  • @anagbachika8093
    @anagbachika8093 Рік тому

    Thank you for visually explaining this.

  • @8DCITY_MUSIC
    @8DCITY_MUSIC 5 років тому +1

    Amazing tutorial and easiest way to learn Memory layout of C programs ....

  • @Byynx
    @Byynx 7 місяців тому

    I always heard that the stack has a fixed size, it doesn't grows. Is this true?

    • @Mohammed-mm3kb
      @Mohammed-mm3kb 6 місяців тому

      the stack grows, it doesn't have a fixed size

  • @rymichael7203
    @rymichael7203 4 роки тому

    Simple, yet helpful. Thank you

  • @avdd80
    @avdd80 Рік тому

    Globals are initialized to 0. Shouldn't they be in .ds ?

  • @VinayK-d7v
    @VinayK-d7v Рік тому

    How to see stack and heap usage by a program ?

  • @akashsalmuthe3772
    @akashsalmuthe3772 4 роки тому

    This is very good For understanding

  • @usama57926
    @usama57926 5 років тому +1

    very nice explanation

  • @PrateekSharmaTheKid
    @PrateekSharmaTheKid 2 роки тому

    Could you please stop with the annoying login popups at your website. There is no close button.

  • @nitsr6053
    @nitsr6053 Рік тому

    thanks narendra

  • @amanbansal3928
    @amanbansal3928 4 роки тому

    how to print this? which commad is used for it?

  • @avronilbanerjee5302
    @avronilbanerjee5302 2 роки тому +1

    where do array, structure and union allocate memory

  • @varuntejatangadipally3842
    @varuntejatangadipally3842 5 років тому

    what is full form of bss? is it base segment?

  • @sapnadani3179
    @sapnadani3179 5 років тому +1

    Why bss has 8 bytes by default ?

    • @vishalgulia3320
      @vishalgulia3320 5 років тому +2

      Some meta data of the program and libraries initialised data will be stored in the bss

  • @sayantaniguha8519
    @sayantaniguha8519 4 роки тому +1

    Will it be different for other programming languages like C or C++ ?

  • @jeganmvengateshm3275
    @jeganmvengateshm3275 3 роки тому

    what is low and high address? anyone?

  • @rahulbathini2214
    @rahulbathini2214 3 роки тому

    why didn't the text value change?

  • @nitinpatle722
    @nitinpatle722 4 роки тому

    Thank you so much

  • @prasannapm3220
    @prasannapm3220 2 роки тому

    thanks !

  • @芥川龍之介-p8r
    @芥川龍之介-p8r 4 роки тому

    日本語でメモリレイアウトって調べても、めぼしいものが出てこなかったので、英語で調べてこの動画に行きついてよかった( ^ω^ )

  • @gokileshgokul4533
    @gokileshgokul4533 5 років тому

    what would be stored in the text segment??

    • @vishalgulia3320
      @vishalgulia3320 5 років тому

      Our code or we can say binary code

    • @gokileshgokul4533
      @gokileshgokul4533 5 років тому

      @@vishalgulia3320 sir as u said initialized variables were stored in one region, uninitialized variables were stored in one region, recursions were stored in heap. my question is, would text segment store all the code or would it store the code except initialized, uninitialized varibale, recursion.

    • @saumyojitdas4212
      @saumyojitdas4212 4 роки тому

      See the source code what we write in c gets compiled and it gets converted into.exe file and then when we run it gets address in the text segment area.

    • @_________________404
      @_________________404 4 роки тому +2

      It's the assembly language form of our code. If you write code in C or any other high level programming language, the code gets converted to assembly language by the compiler. Assembly laguage consists of instructions and is just a binary form of the original code you wrote.

  • @amanbansal3928
    @amanbansal3928 4 роки тому

    where does const data stored?

    • @_________________404
      @_________________404 4 роки тому

      It depends. If it's a local const vaiable used by a method for example, it would be in the program stack since it's temporary and it's only used in the called method. If it's a global const variable then it would probably be in initialized data since there is no need to change it and it's global so it'll never dissapear during the program runtime. It's also possible that global const variables are stored in the heap if you allocate it manually but I don't really know.

  • @rohangupta.1
    @rohangupta.1 3 роки тому

    PLEASE answer below question
    write a c program that create data structure that are larger than the amount of physical memory contained in their machine

  • @60_vuhungthang66
    @60_vuhungthang66 2 роки тому

    Thank you !
    😂😂

  • @ramkrishnasarkar7089
    @ramkrishnasarkar7089 2 місяці тому

    average not much clear

  • @RamanPlayz410
    @RamanPlayz410 Рік тому

    who else is from cu?

  • @NovaAdarsh
    @NovaAdarsh Рік тому

  • @ravianugula666
    @ravianugula666 5 років тому

    Video is not clear. Plz post clear video