Search found 1916 matches

by srvaldez
Jun 06, 2019 0:40
Forum: Community Discussion
Topic: FBwin64-gcc-8.3 for deltarho[1859]
Replies: 13
Views: 447

Re: FBwin64-gcc-8.3 for deltarho[1859]

you could probably blend it like this

Code: Select all

bin
  lib
  libexec
  win64

my version would use lib while yours would use libexec.
by srvaldez
Jun 05, 2019 23:55
Forum: Community Discussion
Topic: FBwin64-gcc-8.3 for deltarho[1859]
Replies: 13
Views: 447

Re: FBwin64-gcc-8.3 for deltarho[1859]

the reason for using

Code: Select all

bin
  lib
  win64

is because that's the way they are in the gcc-toolchain that I used.
by srvaldez
Jun 05, 2019 23:23
Forum: Community Discussion
Topic: FBwin64-gcc-8.3 for deltarho[1859]
Replies: 13
Views: 447

Re: FBwin64-gcc-8.3 for deltarho[1859]

you need to keep the directory structure, the relative paths are hardcoded.
by srvaldez
Jun 05, 2019 17:57
Forum: Community Discussion
Topic: FBwin64-gcc-8.3 for deltarho[1859]
Replies: 13
Views: 447

FBwin64-gcc-8.3 for deltarho[1859]

hello deltarho[1859]
everything works as far I tested fbc-64-win-gcc-8.3
let me know if it works for you.
by srvaldez
Jun 05, 2019 16:30
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated March 25, 2019)
Replies: 516
Views: 58337

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated March 25, 2019)

@deltarho[1859] in the new release page on this forum, you have standalone versions for Windows and also a version that you install in a mingw toolchain it makes it very handy to have FB in the gcc-toolchain to build new FB releases. I am almost finished with the win64 build with gcc-8.3, but got di...
by srvaldez
Jun 04, 2019 23:11
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated March 25, 2019)
Replies: 516
Views: 58337

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated March 25, 2019)

hello deltarho[1859] I built fb with gcc-9.1 and it works ok when used within the gcc-toolchain, but the standalone version gives undefined symbols, I hacked the 32-bit standalone version by replacing init.o in libfb.a with the same object from the latest build by StW and also using StW's libmingw32...
by srvaldez
Jun 02, 2019 20:32
Forum: General
Topic: x64 Win asm naked function return value?
Replies: 13
Views: 419

Re: x64 Win asm naked function return value?

I had a test case where it was crashing without copying rcx to rax , but now I can't replicate the problem, if I find out, I will let you know.
by srvaldez
Jun 02, 2019 11:06
Forum: General
Topic: x64 Win asm naked function return value?
Replies: 13
Views: 419

Re: x64 Win asm naked function return value?

@SARG
I found that for naked functions one must copy rcx to rax before ret, I edited my posts above.
by srvaldez
May 29, 2019 18:58
Forum: General
Topic: timing sub vs function
Replies: 2
Views: 138

Re: timing sub vs function

thanks fxm, your version makes the times about equal, perhaps a better example would be a function/sub that modifies the values passed
by srvaldez
May 29, 2019 17:47
Forum: General
Topic: timing sub vs function
Replies: 2
Views: 138

timing sub vs function

for Windows x64 here's a vey simple test that shows that sub is faster than function compile command: FreeBASIC-1.06.0-win64\fbc -O 2 -asm intel -w all -v foobar.bas foobar.bas type bar as double d as long l as longint ld as zstring*19 sz end type function foo naked () as bar asm fldpi fstp qword pt...
by srvaldez
May 28, 2019 14:17
Forum: General
Topic: x64 Win asm naked function return value?
Replies: 13
Views: 419

Re: x64 Win asm naked function return value?

yes, I kind of thought so. :-) [dit] resolved the problem on macOS, I was doing "movl 123, %eax" when it should be "movl $123, %eax" also FB has the offsetof function to get the offset of the different members of a type, but I was looking for way to retrieve that information in asm
by srvaldez
May 28, 2019 14:05
Forum: General
Topic: x64 Win asm naked function return value?
Replies: 13
Views: 419

Re: x64 Win asm naked function return value?

hello SARG
is there a way to know the offset of the elements of a structure as in the foo-bar example?
I am having no luck in macOS, except for the first element.
by srvaldez
May 28, 2019 0:27
Forum: General
Topic: x64 Win asm naked function return value?
Replies: 13
Views: 419

Re: x64 Win asm naked function return value?

yes, I corrected my post.
by srvaldez
May 28, 2019 0:06
Forum: General
Topic: x64 Win asm naked function return value?
Replies: 13
Views: 419

Re: x64 Win asm naked function return value?

thanks SARG :-)
mov rax,.L0+8 'only copies 8 characters
mov qword ptr [rcx+32],rax 'copies the remaining characters of the string
by srvaldez
May 27, 2019 23:26
Forum: General
Topic: x64 Win asm naked function return value?
Replies: 13
Views: 419

Re: x64 Win asm naked function return value?

thank you SARG I will study your information later, right now I have a bad headache, would it be safe to say that assigning a value to this hidden variable would be equivalent to the statement Function = value ? here's another silly example type bar as double d as long l as longint ld as zstring*19 ...

Go to advanced search