Thread: BSS Segment Size

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2022
    Posts
    96

    BSS Segment Size

    I'm going through memory layout in C Memory Layout of C Programs - GeeksforGeeksand have been exploring two different programs mention in point 1 and 2 . In both programs, I expected the size of the BSS segment to change based on the content, but I'm consistently getting the same size.

    Could you help me understand why this might be happening? Below are the commands I've tried and their outputs on my Ubuntu system:

    Attached Images Attached Images BSS Segment Size-img_20240501_175038-jpg 

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why would they use this segment instead of this one?
    By hannahfox123 in forum C++ Programming
    Replies: 3
    Last Post: 06-21-2010, 08:54 AM
  2. segment notes
    By cs32 in forum C Programming
    Replies: 2
    Last Post: 03-05-2008, 03:30 AM
  3. shmget returning invalid segment size specified
    By BobS0327 in forum Linux Programming
    Replies: 6
    Last Post: 11-08-2006, 06:39 PM
  4. What does this code segment do?
    By Mr. Acclude in forum C++ Programming
    Replies: 2
    Last Post: 09-12-2005, 08:48 PM
  5. segment fault?
    By major_small in forum C++ Programming
    Replies: 4
    Last Post: 09-18-2003, 07:18 PM

Tags for this Thread