Git Product home page Git Product logo

Comments (10)

rtakacs avatar rtakacs commented on August 17, 2024

@glistening: nuttx.bin contains the tests (by ROMFS) as well. Should we have a NuttX build without the tests and report that size?

from js-remote-test.

glistening avatar glistening commented on August 17, 2024

@rtakacs Yes. We would like to know the minimal size. (i.e. without debug symbol, unit tests, ...)

from js-remote-test.

hs0225 avatar hs0225 commented on August 17, 2024

One way to measure it is to use arm-none-eabi-size to get the size from static library file(*.a).

from js-remote-test.

rtakacs avatar rtakacs commented on August 17, 2024

In the build/arm-nuttx/release/lib folder there are more static libraries:

libhttpparser.a libiotjs.a libjerry-core.a libjerry-ext.a libjerry-libm.a libtuv.a

Is it enough just aggregate the main segments (.text, .data, .rodata) to approximate the binary size? In this case the binary size of the RPi2 target also should be use this mechanism (and not the ls command that currently is used).

The binary size chart on the page can be an aggregated chart that can show the .text .data .rodata values.

from js-remote-test.

glistening avatar glistening commented on August 17, 2024

@rtakacs It seems ok. But I would like to get confirmed from @hs0225.

from js-remote-test.

LaszloLango avatar LaszloLango commented on August 17, 2024

The archive files contain unused symbols too. Link time optimization drop those symbols from the final binary, so reporting the archive sizes could be misleading. What about analyzing the map file of the linker? It might give us a more precise result.

from js-remote-test.

rtakacs avatar rtakacs commented on August 17, 2024

@LaszloLango Yes, you are right. Maybe the map file should be processed, because that contains the final .text, .data, .rodata sizes.

from js-remote-test.

glistening avatar glistening commented on August 17, 2024

@LaszloLango, @rtakacs In general, you're right. But @hs0225 suggested this approach for some reason. He showed numbers that it shows not much differences. He will contact and explain you on IRC for details. I am ok for map approach if @hs0225 agrees.

from js-remote-test.

hs0225 avatar hs0225 commented on August 17, 2024

@LaszloLango @rtakacs I agree to use the map file because it's the right way. FYI, TizenRT provides a utility to analyze map files.(os/tools/memstats_gnueabil.py)
Is it possible to measure size by using map file in rpi2 and nuttx?

from js-remote-test.

rtakacs avatar rtakacs commented on August 17, 2024

@hs0225 Yes, #53 uses the linker map file (on both targets) to approximate the binary size. Since #53 is landed, I'm closing this issue.

from js-remote-test.

Related Issues (16)

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.