From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3ccb707f4c91a5f2 X-Google-Attributes: gid103376,public From: eachus@spectre.mitre.org (Robert I. Eachus) Subject: Re: Java vs Ada 95 (Was Re: Once again, Ada absent from DoD SBIR solicitation) Date: 1996/10/15 Message-ID: #1/1 X-Deja-AN: 189621778 references: <325BC3B3.41C6@hso.link.com> organization: The Mitre Corp., Bedford, MA. newsgroups: comp.lang.ada Date: 1996-10-15T00:00:00+00:00 List-Id: For the record: with System; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; procedure GC_Test is P: Unbounded_String := Null_Unbounded_String; Mem_Size: Integer; begin if System.Memory_Size >= Integer'Last then Mem_Size := Integer'Last; else Mem_Size := Integer(System.Memory_Size); end if; Put_Line(" Mem_Size set to " & Integer'Image(Mem_Size)); for I in 1 .. Mem_Size loop P := To_Unbounded_String(Integer'Image(I)); if I mod 100_000 = 0 then Put_Line(" At I = " & To_String(P)); end if; end loop; Put_Line("The system has garbage collection."); exception when Storage_Error => Put_Line("The system is not legal Ada 95. " & " It does not implement garbage collection."); end GC_Test; Is running in the background on this machine right now. (SunOS 4.1.3, gnat 3.05) Output to date is: spectre% gc_test Mem_Size set to 2147483647 At I = 100000 At I = 200000 At I = 300000 At I = 400000 ... At I = 4000000 At I = 4100000 At I = 4200000 At I = 4300000 At I = 4400000 At I = 4500000 I may leave it running overnight, but ps shows that memory use is steady. Any questions? (To translate, Ada 95 has built in GC required--but not for all types.) -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...