🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Przemek Klosowski Wed, 20 Nov 1996 00:00
Floating constant compilation bug: gcc 2.7.2 on DEC/Alpha/GNU/Linux
#6161
Author: Przemek Klosowski
Date: Wed, 20 Nov 1996 00:00
17 lines
1233 bytes
C code 'double entendre = 2.2250738585072014e-308;'
generates in the following (incorrect) assembly:
        entendre:
          .t_floating 2.22507385850720138309e-308
the assembler compiles this to  ('objdump --full-contents testfpconst.o')
           0000 ffffffff ffff0f00                    ........      
whereas it should have been
           0000 00000000 00001000                    ........        
Note that the above number is DBL_MIN (I wrote it explicitly to simplify the example).


-- 
			przemek klosowski <przemek@nist.gov>  (301) 975-6249
			Reactor Division (bldg. 235), E111 
			National Institute of Standards and Technology
			Gaithersburg, MD 20899,      USA
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads