Reducing cruft in ATS binaries

34 views
Skip to first unread message

Shea Levy

unread,
Mar 13, 2015, 5:13:44 PM3/13/15
to ats-lan...@googlegroups.com
Hi all,

When compiling even a very simple program with just a main definition (using -O3 when calling gcc), the resulting binary has a lot of extraneous symbols and the actual disassembly of main shows a few function calls before actually calling main. Is there a set of flags I can use to reduce this?

Thanks,
Shea

Hongwei Xi

unread,
Mar 13, 2015, 5:44:58 PM3/13/15
to ats-lan...@googlegroups.com
Try:

patscc -D_ATS_CCOMP_EXCEPTION_NONE -O3 hello.dats -o hello_ats

If you want something leaner, then you probably need to provide your own run-time.

For instance, here is the run-time I built for Arduino boards:


--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/2D8BEE4C-4A86-40F9-A205-E89D9E96F82B%40shealevy.com.

Reply all
Reply to author
Forward
0 new messages