comp.lang.ada
 help / color / mirror / Atom feed
* Exceptions in GNAT
@ 2002-06-02 11:01 David Rasmussen
  2002-06-02 11:04 ` David Rasmussen
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: David Rasmussen @ 2002-06-02 11:01 UTC (permalink / raw)


I am learning Ada, and in one exercise I am told to find out how large 
and integer I can use on my system, before it overflows. The exercise 
just tells me to add two larger and larger numbers and see when an 
exception occurs. I have just compiled my program with gnatmake with no 
options, and I am using gcc 3.1 . When the numbers get large enough, the 
result is just a negative number because of wrap-around. Shouldn't I get 
an exception, unless I turn it off? How do I compile for with most 
checks for debug builds, and how do I compile with everything turned off 
for performance intensive release builds?

/David




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-06-02 20:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-02 11:01 Exceptions in GNAT David Rasmussen
2002-06-02 11:04 ` David Rasmussen
2002-06-02 12:36   ` Preben Randhol
2002-06-02 12:39   ` Jeffrey Creem
2002-06-02 12:26 ` David C. Hoos, Sr.
2002-06-02 12:28 ` Preben Randhol
2002-06-02 12:39   ` David Rasmussen
2002-06-02 15:34   ` Simon Wright
2002-06-02 15:02 ` Robert Dewar
2002-06-02 20:37 ` Jeffrey Carter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox