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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada: A beginners experience Date: Sat, 21 Jul 2018 09:25:31 +0100 Organization: A noiseless patient Spider Message-ID: References: <1d3743b1-1a36-429d-92c7-9ae0e7c16e63@googlegroups.com> <8cf99886-bbf2-4fb9-9a92-aaa5403a2624@googlegroups.com> <821c650e-72ae-4bd1-97a4-3a9bd7433d48@googlegroups.com> <2e79b691-61d0-4ed4-8fb8-5d2187bbf06f@googlegroups.com> <611759ac-2b7f-4d12-9cc9-4769f7382d01@googlegroups.com> <530d8baa-ad09-4870-a59d-ef5f0b7f5b99@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="705bbce44803c84fad93d93af0d32572"; logging-data="2243"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VJW+l7fmfTJMux+3LV02gF6wgbupMKxo=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:l9XvGm+4qImOtakIy+Q+FPJ7/IE= sha1:p5Xohwx4JvnjYpou263GTOtSx6s= Xref: reader02.eternal-september.org comp.lang.ada:53930 Date: 2018-07-21T09:25:31+01:00 List-Id: Maciej Sobczak writes: >> package body Program is >> >> X : Integer := 123; -- This actually worked correctly for me > > Interesting! I cannot explain that without analyzing the assembly and > the linker script, but I can imagine it being the case. At the end of program.s, in section .data, .align 2 .type program__x, %object .size program__x, 4 program__x: .word 123 .ident "GCC: (GNU) 8.1.0" (If you don't assign X within Run, this gets put into .rodata)