Skip to content

Libstdc++ Nano? #1228

Open
Open
@toddsharpe

Description

@toddsharpe

When I build this toolchain locally (./configure --prefix=$INSTALL_DIR --with-arch=rv32i --with-cmodel=medlow --with-multilib-generator="rv32i-ilp32--;rv32ima-ilp32--") I notice in the output there are a few nano libs:

./riscv32-unknown-elf/lib/libm_nano.a
./riscv32-unknown-elf/lib/libc_nano.a
./riscv32-unknown-elf/lib/libgloss_nano.a
./riscv32-unknown-elf/lib/libg_nano.a

However, when comparing to my Arm toolchain:

./hard/librdimon_nano.a
./hard/libsupc++_nano.a
./hard/libstdc++_nano.a
./hard/libc_nano.a
./hard/libg_nano.a

Noticably, libstdc++_nano.a seems to not be built by RISCV toolchain and therefore my riscv binaries are larger than the stm ones as the full libcstd++ brings in exceptions and demangle. Is there a way to produce this build? (It also looks like nano.specs itself for riscv needs to be updated?).

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions