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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.50.92.10 with SMTP id ci10mr27768212igb.8.1425482539777; Wed, 04 Mar 2015 07:22:19 -0800 (PST) X-Received: by 10.140.94.170 with SMTP id g39mr82420qge.34.1425482539558; Wed, 04 Mar 2015 07:22:19 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!hl2no4114264igb.0!news-out.google.com!qk8ni49443igc.0!nntp.google.com!k15no154375qaq.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 4 Mar 2015 07:22:19 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=105.236.22.103; posting-account=orbgeAkAAADzWCTlruxuX_Ts4lIq8C5J NNTP-Posting-Host: 105.236.22.103 References: <07330c00-0317-4bb2-8ffb-67bff98dc9eb@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <05f8f7cc-a934-4a2b-aa58-4f40fc540e66@googlegroups.com> Subject: Re: GNAT stm34f4 zfp question. From: jan.de.kruyf@gmail.com Injection-Date: Wed, 04 Mar 2015 15:22:19 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 2315 X-Received-Body-CRC: 1696155268 Xref: news.eternal-september.org comp.lang.ada:25103 Date: 2015-03-04T07:22:19-08:00 List-Id: On Tuesday, March 3, 2015 at 7:15:29 PM UTC+2, Patrick Noffke wrote: > Here is my final linking command in my own Makefile: > > @$(CC) --RTS=$(RTS) $(LD_FLAGS) -Wl,--gc-sections -nostdinc -nodefaultlibs -nostartfiles -T$(LINKER_SCRIPT) -L$(RTS_INSTALL_DIR) $(OBJS) $(RTS_INSTALL_DIR)/libgnat.a $(RTS_INSTALL_DIR)/libgnarl.a -lgcc -o $@ > > where > > LD_FLAGS := -fmessage-length=0 -gnatA -mcpu=cortex-m4 -mlittle-endian -mfpu=fpv4-sp-d16 -march=armv7e-m -mfloat-abi=hard -mthumb > > (This was for a Cortex-M4 MCU.) > Just a quick update: I managed to make a reasonable looking runtime libgnat.a by diligently reading the gnathie_ug.pdf and the gnat_ugx.pdf manuals. Especially the first one gives some rationale as to why the zfp tar file looks the way it looks. So I added some ravenscar runtime files into the mix and build with gps. The biggest issue is to sort out the board support files, since I now wanted to do away with threads and some other cruft in there, sine we have ravenscar if I need that. Tomorrow we try to use it . . . cheers, j.