17 Apr 2024 |
| dotsilas joined the room. | 21:39:15 |
| basilajith changed their profile picture. | 23:37:58 |
18 Apr 2024 |
| huantian changed their profile picture. | 03:13:15 |
m4ul3r | 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 |
| destrix12 joined the room. | 07:52:26 |
m4ul3r | * 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 |
pmunch | What's --t ? | 08:50:14 |
m4ul3r | Pass to compiler | 08:57:26 |
odexine | ? where did you find that flag to mean that? | 09:02:17 |
m4ul3r | 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 |
nnsee | it is definitely -t | 09:17:37 |
m4ul3r | Yes, but —t works as well | 09:20:22 |
m4ul3r | Download image.png | 09:25:00 |
m4ul3r | A simplified example works for me on linux, I have a lot of moving parts on the project ig | 09:28:46 |
odexine | 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 |
m4ul3r | 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 |
| .xyuri changed their display name from xYuri to .xyuri. | 10:03:51 |
m4ul3r | hmm, it looks like -ffunction-sections is causing it | 10:05:39 |
| infohazard_ changed their display name from rramos.eth | ラモス to infohazard_. | 16:23:20 |
| 27theo joined the room. | 17:21:32 |
19 Apr 2024 |
| amkrajewski changed their display name from akopx to amkrajewski. | 02:04:04 |
| samurmaykr changed their profile picture. | 10:41:06 |
| stm_int joined the room. | 15:19:50 |
| kots changed their profile picture. | 15:34:44 |
| s0cketinc changed their profile picture. | 15:37:48 |
| ertugrulqayibov joined the room. | 17:30:51 |
| narcolepts changed their display name from recycledloveletter to cut2deep. | 20:53:14 |
20 Apr 2024 |
| wileycoleman joined the room. | 01:00:02 |
| hokuto1409 joined the room. | 01:26:23 |
| basilajith changed their display name from bsljth to basilajith. | 04:06:14 |