Checking size of variables

"Thomas Christensen" <tc@elvis.dk>
16 May 2005 22:43:10 -0400

          From comp.compilers

Related articles
Checking size of variables tc@elvis.dk (Thomas Christensen) (2005-05-16)
Re: Checking size of variables 148f3wg02@sneakemail.com (Karsten Nyblad) (2005-05-18)
Re: Checking size of variables DrDiettrich@compuserve.de (Hans-Peter Diettrich) (2005-05-18)
Re: Checking size of variables torbenm@diku.dk (2005-05-18)
Re: Checking size of variables henry@spsystems.net (2005-05-18)
Re: Checking size of variables firefly@diku.dk (Peter \Firefly\Lund) (2005-08-07)
| List of all articles for this month |

From: "Thomas Christensen" <tc@elvis.dk>
Newsgroups: comp.compilers
Date: 16 May 2005 22:43:10 -0400
Organization: Compilers Central
Keywords: analysis, question, comment

Hi,


<newbie_question>
Where does a compiler _usually_ perform checks on the size of
integers and strings ?


For example. If a user declares a variable as an "int" in the source
code, and assigns it some 50 digit number (or any number, exceeding
the size of an int).


Is this sort of error detected by the lexer or by the type checker, or ?


</newbie_question>


Regards
Thomas Christensen
[In far too many cases, the answer is "no". -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.