Windows stability

General discussion for topics related to the FreeBASIC project or its community.
SARG
Posts: 1755
Joined: May 27, 2005 7:15
Location: FRANCE

Re: Windows stability

Post by SARG »

I got this message only without 'f'. ???????????

Code: Select all

target:       win64, x86-64, 64bit
backend:      gcc
compiling:    test3.bas -o test3.c (main module)
compiling C:  D:\compiler108\freebasic64bit\bin\win64\gcc.exe -m64 -march=x86-64 -S -nostdlib -nostdinc -Wall -Wno-unused -Wno-main -Werror-implicit-function-declaration -O0 -fno-strict-aliasing -frounding-math -fno-math-errno -fwrapv -fno-exceptions -fno-asynchronous-unwind-tables -funwind-tables -Wno-format -masm=intel "test3.c" -o "test3.asm"
assembling:   D:\compiler108\freebasic64bit\bin\win64\as.exe --64 --strip-local-absolute "test3.asm" -o "test3.o"
linking:      D:\compiler108\freebasic64bit\bin\win64\ld.exe -m i386pep -o "test3.exe" -subsystem console -T "D:\compiler108\freebasic64bit\lib\win64\fbextra.x" --stack 2097152,2097152 -s -L "D:\compiler108\freebasic64bit\lib\win64" -L "." "D:\compiler108\freebasic64bit\lib\win64\crt2.o" "D:\compiler108\freebasic64bit\lib\win64\crtbegin.o" "D:\compiler108\freebasic64bit\lib\win64\fbrt0.o" "test3.o" "-(" -lfb -lgcc -lmsvcrt -lkernel32 -luser32 -lmingw32 -lmingwex -lmoldname -lgcc_eh "-)" "D:\compiler108\freebasic64bit\lib\win64\crtend.o"
test3.bas() error 91: Executable not found: "D:\compiler108\freebasic64bit\bin\win64\ld.exe"   <------------------------ ERROR
dodicat
Posts: 7976
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: Windows stability

Post by dodicat »

Thanks srvaldez/SARG, my CPU can't execute rdseed, also tested with RDRAND with bt ebx, 30, nothing.
SARG
Posts: 1755
Joined: May 27, 2005 7:15
Location: FRANCE

Re: Windows stability

Post by SARG »

@dodicat

Why test with 30 it's for AVX512BW ?
srvaldez
Posts: 3373
Joined: Sep 25, 2005 21:54

Re: Windows stability

Post by srvaldez »

the information concerning CPU feature test seems hard to get, dodicat try bt ecx instead of ebx, hopefully it won't cause a crash
SARG
Posts: 1755
Joined: May 27, 2005 7:15
Location: FRANCE

Re: Windows stability

Post by SARG »

@srvaldez
did you get also this message ?

test3.bas() error 91: Executable not found: "D:\compiler108\freebasic64bit\bin\win64\ld.exe" <------------------------ ERROR
Andrew92
Posts: 8
Joined: Apr 28, 2022 23:19

Re: Windows stability

Post by Andrew92 »

I've personally noticed a gradual decay in performance despite me constantly maintaining it. Is this a common occurrence or is it just me?
srvaldez
Posts: 3373
Joined: Sep 25, 2005 21:54

Re: Windows stability

Post by srvaldez »

@SARG no I didn't
SARG
Posts: 1755
Joined: May 27, 2005 7:15
Location: FRANCE

Re: Windows stability

Post by SARG »

Very strange.

With 'f' no error and a working exe.
Without 'f' an error but the exe is anyway generated.
adeyblue
Posts: 299
Joined: Nov 07, 2019 20:08

Re: Windows stability

Post by adeyblue »

I get it. LD crashes while creating the non-f exe. The exe it creates doesn't run because the file is 90% zero bytes
SARG
Posts: 1755
Joined: May 27, 2005 7:15
Location: FRANCE

Re: Windows stability

Post by SARG »

@adeyblue
Yes I concluded the same thing after looking inside the exe file.
My question was more about "error 91: Executable not found" so I searched in the compiler where/why this message is thrown.

It's just exec(linker) or shell(linker) therefore when the linker is not found or the execution fails (a crash) the return value is negative and we get this message.
Maybe it could be possible to use a different error according the problem. I agree that a crash of the linker (C compiler/assembler) should be very rare.

On Windows
Not found : FFFFFFFFFFFFFFFF
Crash : FFFFFFFFC0000005

@srvaldez
Using a simple number as label for a test is wrong.
In your code jnc 0 is compiled into an instruction that causes a crash if the jump must be executed. Tested with a debugger.
Try replacing by jc to force the jump.
srvaldez
Posts: 3373
Joined: Sep 25, 2005 21:54

Re: Windows stability

Post by srvaldez »

than you SARG :)
I will keep it mind
srvaldez
Posts: 3373
Joined: Sep 25, 2005 21:54

Re: Windows stability

Post by srvaldez »

here lately if I right-click&drag a folder onto another drive or folder then as soon as the folder I was dragging was inside the other drive/folder it's icon would have rectangle artifact super-imposed, so it occurred to me to delete the icon-cache and that worked, no more artifact
the question is why did the icon get corrupted?
Post Reply