Giter Site home page Giter Site logo

Comments (2)

trungnq97 avatar trungnq97 commented on July 21, 2024

When building with -O4 -flto-api=exports.txt, my swf file now is only 212K. The exports.txt is taken from example 9 pthreads. Still this exports.txt is mysterious to me. Can anybody explain where these symbols come from? (Or how to build this list of symbols?).

built in symbols that must always be preserved

_start1
malloc
free
memcpy
memmove
flascc_uiTickProc
_sync_synchronize

symbols for C++ exception handling

_Unwind_SjLj_Register
_Unwind_SjLj_Resume
_Unwind_SjLj_Unregister
_Unwind_SjLj_RaiseException

symbols specific to libVGL

vglttyioctl

I did two simple tests:

Remove
"

symbols specific to libVGL

vglttyioctl
"
.. no output from printf

Remove
"

symbols for C++ exception handling

_Unwind_SjLj_Register
_Unwind_SjLj_Resume
_Unwind_SjLj_Unregister
_Unwind_SjLj_RaiseException
"
.. the swf stops working.

from crossbridge.

cbakgly avatar cbakgly commented on July 21, 2024

These are native symbols in libc.
If you ever write a helloworld.cpp, don't you wonder how such a small app prints out "hello world"?
Never forget you have OS/Libs supporting you. Now you bring part of them along in your swf file to support you again.

from crossbridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.