Thread: Freeing memory before exit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2022
    Posts
    57
    Don't focus too much on signedness. It's rather about the method how signed integers are represented in a given implementation. The r?? are 64-bit, and the e?? are 32-bit registers. There is no such attribute like "signed" or "unsigned" for registers. As we are talking about two's complement to represent signed integers, the -1 just means all bits are set 1. Similarly, 4294967295 means 32 bits are set that represent -1 as a 32-bit signed integer.
    Last edited by aGerman; 03-02-2024 at 03:03 PM.

  2. #2
    Registered User
    Join Date
    Mar 2024
    Posts
    10
    Quote Originally Posted by aGerman View Post
    Don't focus too much on signedness. It's rather about the method how signed integers are represented in a given implementation. The r?? are 64-bit, and the e?? are 32-bit registers. There is no such attribute like "signed" or "unsigned" for registers. As we are talking about two's complement to represent signed integers, the -1 just means all bits are set 1. Similarly, 4294967295 means 32 bits are set that represent -1 as a 32-bit signed integer.
    Oh, OK. Like I said I have absolutely no idea about assembly... So I was just curious why they were passed like that.

    Thank you very much Salem and aGerman for your help. I will do my best to keep track of resources and free them before terminating the program

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Freeing memory
    By Ducky in forum C++ Programming
    Replies: 2
    Last Post: 06-23-2012, 06:38 PM
  2. Dynamic memory and realloc(), freeing memory
    By C_Sparky in forum C Programming
    Replies: 6
    Last Post: 10-06-2010, 07:55 PM
  3. Freeing memory
    By bikr692002 in forum C++ Programming
    Replies: 6
    Last Post: 04-09-2006, 04:58 PM
  4. Freeing memory before exit
    By tretton in forum C Programming
    Replies: 13
    Last Post: 02-01-2006, 07:33 PM
  5. freeing memory
    By mart_man00 in forum C Programming
    Replies: 1
    Last Post: 04-27-2003, 08:51 PM

Tags for this Thread