Hi,

I'm using valgrind on a small Ada program (attached).

The Ada program runs fine on the linux host, it prints 8.5.

When I run the program through valgrind, it prints 0.0.

Any ideas why this might be?

I tried this with gnatmake with gnu 4.1.2 and gnu 4.2 on,

$ uname -a
Linux maple 2.6.32-22-generic-pae #36-Ubuntu SMP Thu Jun 3 23:14:23 UTC
2010 i686 GNU/Linux

Thanks,
Bob
with System.Img_Real;  use System.Img_Real;
with System.Val_Real;  use System.Val_Real;

with Ada.Text_IO;

procedure Sample is
  Buf : String (1 .. 3);
  Ptr : Natural := 0;
begin
   Set_Image_Real (8.5, Buf, Ptr, Fore => 1, Aft => 1, Exp => 0);
   Ada.Text_IO.Put_Line (buf);
end Sample;
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to