Reducing cruft in ATS binaries

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

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:

https://github.com/githwxi/ATS-Postiats-contrib/blob/master/contrib/arduino/H/On Fri, Mar 13, 2015 at 5:13 PM, Shea Levy sh...@shealevy.com wrote:

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


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
.