!XapGZNIJBdllftyykG:matrix.org

Nim Embedded

5389 Members
Let's chat embedded. Whether it's in Nim or otherwise. ESP8266, Arduino, and a whole bunch of other discussions related to electronics.22 Servers

Load older messages


SenderMessageTime
17 Apr 2024
@_discord_828839442914476072:t2bot.iodotsilas joined the room.21:39:15
@_discord_1031590276667539496:t2bot.iobasilajith changed their profile picture.23:37:58
18 Apr 2024
@_discord_300050030923087872:t2bot.iohuantian changed their profile picture.03:13:15
@_discord_186968592544301058:t2bot.iom4ul3r I've defined in my nim.cfg,
--t:"-Os"
--t:"-falign-functions=1"
--t:"-falign-jumps=1"
--t:"-falign-labels=1"

-Os https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Optimize-Options.html#index-Os, should disable -falign-functions. The functions are still being align in the final bin, as well as in my object files, so it's happening at the compile and not linking

Any advices?
07:50:43
@_discord_1011177642403303464:t2bot.iodestrix12 joined the room.07:52:26
@_discord_186968592544301058:t2bot.iom4ul3r * I've defined in my nim.cfg,
--t:"-Os"
--t:"-falign-functions=1"
--t:"-falign-jumps=1"
--t:"-falign-labels=1"

-Os https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Optimize-Options.html#index-Os, should disable -falign-functions. The functions are still being align in the final bin, as well as in my object files, so it's happening at the compile and not linking

Any advices?

I have also tried:
--t:"-fno-align-functions"
--t:"-fno-align-labels"
--t:"-fno-align-jumps"
07:54:41
@_discord_392962235737047041:t2bot.iopmunch What's --t? 08:50:14
@_discord_186968592544301058:t2bot.iom4ul3r Pass to compiler 08:57:26
@_discord_259277943275126785:t2bot.ioodexine ? where did you find that flag to mean that? 09:02:17
@_discord_186968592544301058:t2bot.iom4ul3r https://nim-lang.org/docs/nimc.html
Says -t, but —t is passing to the compiler, I see it in the json output in cache
09:13:37
@_discord_961485620075720734:t2bot.ionnsee it is definitely -t 09:17:37
@_discord_186968592544301058:t2bot.iom4ul3r Yes, but —t works as well 09:20:22
@_discord_186968592544301058:t2bot.iom4ul3rimage.png
Download image.png
09:25:00
@_discord_186968592544301058:t2bot.iom4ul3r A simplified example works for me on linux, I have a lot of moving parts on the project ig 09:28:46
@_discord_259277943275126785:t2bot.ioodexine reading the gcc docs, "This is an optimization of code performance and alignment is ignored for functions considered cold. If alignment is required for all functions, use -fmin-function-alignment.", could this be possibly whats happening for you? 09:30:11
@_discord_186968592544301058:t2bot.iom4ul3r I'm getting (gcc 11.1.0)
gcc.exe: error: unrecognized command-line option '-fmin-function-alignment'; did you mean '-flimit-function-alignment'?

I should have mentioned i have tried limit-function-alignment with the above
09:36:22
@_discord_748011241917775893:t2bot.io.xyuri changed their display name from xYuri to .xyuri.10:03:51
@_discord_186968592544301058:t2bot.iom4ul3r hmm, it looks like -ffunction-sections is causing it 10:05:39
@_discord_532997111273226259:t2bot.ioinfohazard_ changed their display name from rramos.eth | ラモス to infohazard_.16:23:20
@_discord_323899724916850698:t2bot.io27theo joined the room.17:21:32
19 Apr 2024
@_discord_411277620731314187:t2bot.ioamkrajewski changed their display name from akopx to amkrajewski.02:04:04
@_discord_759023169267826758:t2bot.iosamurmaykr changed their profile picture.10:41:06
@_discord_1172854076195741746:t2bot.iostm_int joined the room.15:19:50
@_discord_305785071489515540:t2bot.iokots changed their profile picture.15:34:44
@_discord_1072354088953593888:t2bot.ios0cketinc changed their profile picture.15:37:48
@_discord_966324311143104583:t2bot.ioertugrulqayibov joined the room.17:30:51
@_discord_1185582052695875685:t2bot.ionarcolepts changed their display name from recycledloveletter to cut2deep.20:53:14
20 Apr 2024
@_discord_833027185254072341:t2bot.iowileycoleman joined the room.01:00:02
@_discord_733289565644914750:t2bot.iohokuto1409 joined the room.01:26:23
@_discord_1031590276667539496:t2bot.iobasilajith changed their display name from bsljth to basilajith.04:06:14

Show newer messages


Back to Room ListRoom Version: 6