Thread: definitions in general

  1. #1
    Banned
    Join Date
    Apr 2015
    Posts
    596

    definitions in general

    Hi guys, I'm so curious about definitions on the programming language.

    for example int char long in ..bla bla bla , is it necessary for PC or for compiler? I just want to know that thing to get more view on how PC works .

    I think it's concrete to the compiler which by the definitions the compiler tells the PC how to manipulate things over the program I've written.

  2. #2
    Registered User
    Join Date
    May 2016
    Posts
    104
    Well, they've finally done it; the folks at Cern have managed to scramble the fabric of space and time, because I vividly remember an alternate reality wherein RyanC was banned for spewing out nonsense.
    Paraphrasing the title of the 1939 classic, I guess that's all Gone with the wind...

    ++Mandela_Effect;
    printf("I'm a %s.\n", strrev("Dren"));

  3. #3
    Registered User catacombs's Avatar
    Join Date
    May 2019
    Location
    /home/
    Posts
    81
    Not sure if serious, sounds like you're not, but for anyone reading, here's a basic introduction to C data types: C Data Types

  4. #4
    Banned
    Join Date
    Apr 2015
    Posts
    596
    Quote Originally Posted by catacombs View Post
    Not sure if serious, sounds like you're not, but for anyone reading, here's a basic introduction to C data types: C Data Types
    I know there's C data types, but is it for compiler definition or PC definition for recognizing it?

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Your CPU doesn't give a damn about which programming language you chose.
    Hell, you can choose two different compilers, where int is 32-bits on one, and 64-bits on the other, and it would carry on just the same.
    So long as your program itself couldn't care less about 32 vs 64 bits, it would even give you the same answer.

    You know, you really need to pull your head out of this hole you've created for yourself regarding what your 'PC' seems to think about things.
    It doesn't.
    It's a stupid box, following simple rules, which YOU defined.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    Registered User catacombs's Avatar
    Join Date
    May 2019
    Location
    /home/
    Posts
    81
    Quote Originally Posted by RyanC View Post
    I know there's C data types, but is it for compiler definition or PC definition for recognizing it?
    The definitions are for the compiler to translate to machine code. Systems might vary slightly on how to handle, say, extremely complex double-precision numbers.

  7. #7
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    The computer runs the machine code. The toolchain produces the machine code.
    Toolchain means compiler/linker and related software.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  8. #8
    Banned
    Join Date
    Apr 2015
    Posts
    596
    thanks alot, all is fine now !


    thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [General Help] Dynamic Arrays and General Pointer syntax
    By Amberlampz in forum C Programming
    Replies: 22
    Last Post: 07-26-2011, 10:58 PM
  2. Replies: 23
    Last Post: 03-07-2011, 05:28 PM
  3. #definitions
    By errigour in forum C Programming
    Replies: 1
    Last Post: 11-11-2010, 08:24 AM
  4. Help on definitions
    By GAMEPROJOE in forum C++ Programming
    Replies: 2
    Last Post: 07-18-2003, 01:59 PM
  5. definitions?
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 06-16-2002, 09:59 PM

Tags for this Thread