Search found 445 matches

by jj2007
Jun 21, 2018 22:54
Forum: Beginners
Topic: New here: Should I start with freebasic?
Replies: 10
Views: 240

Re: New here: Should I start with freebasic?

> "Launcher.exe" which just runs another exe and passes the CL parameters to it.

The task is indeed a bit weird, but it could be done in Masm32 at 1024 or 2048 bytes, using WinExec. But even in FreeBasic it will probably be less than 50k.
by jj2007
Jun 21, 2018 21:43
Forum: Beginners
Topic: Printing
Replies: 6
Views: 156

Re: Printing

Choosing the font Allowing bold or italic Allowing selection of colour of print Changing size of type This is really a case for a RichEdit control. Anything else is utterly complicated. I wrote a printer driver in the early 1980s, it's not impossible, sure, but... how does your text source look lik...
by jj2007
Jun 21, 2018 14:16
Forum: Beginners
Topic: Printing
Replies: 6
Views: 156

Re: Printing

Under Windows, the RichEdit control can send formatted text to a printer.
by jj2007
Jun 15, 2018 10:48
Forum: Community Discussion
Topic: Speed of FreeBasic
Replies: 54
Views: 2302

Re: Speed of FreeBasic

zxretrosoft wrote:Here is the code in FB:

Code: Select all

Location:  80183725
LWK 3724
30 seconds on a Core i5, compiled with GCC.

You show that SpiderBasic is a factor 4 faster than C++. Suspicious... it probably means that the design of the program is not optimised.
by jj2007
Jun 12, 2018 11:56
Forum: Community Discussion
Topic: Intel Free compilers
Replies: 5
Views: 369

Re: Intel Free compilers

Intel's compiler is the one that produces the fastest executables, see e.g. Willus.com's 2011 Win32/64 C Compiler Benchmarks or A Performance-Based Comparison of C/C++ Compilers. But build times are rather slow, and it's a huge download.
by jj2007
Jun 11, 2018 12:41
Forum: General
Topic: FPU grief
Replies: 15
Views: 232

Re: FPU grief

You are welcome. I like the FPU, it's more precise than the SSE2 instructions and equally fast.
by jj2007
Jun 11, 2018 11:57
Forum: General
Topic: FPU grief
Replies: 15
Views: 232

Re: FPU grief

Looks ok. Btw your main problem was the fstp dword Ptr [Function], which produced a single instead of a double.
by jj2007
Jun 11, 2018 11:18
Forum: General
Topic: FPU grief
Replies: 15
Views: 232

Re: FPU grief

Function TestCase As Double Dim As Ulong x= 3423376 Asm finit push 0 ' push 4294967295 as a qword push -1 fild qword ptr [esp] pop edx pop edx fild dword ptr [x] fdiv st(0), st(1) fstp qword ptr [function] ' Pop st(0) into Function End Asm End Function Print TestCase ' 0.0008 sleep() A bit shorter:...
by jj2007
Jun 10, 2018 6:44
Forum: General
Topic: new complete FB version ?
Replies: 34
Views: 1069

Re: new complete FB version ?

bluatigro wrote:my pc do not eat *.rar
is there a *.zip ?
I don't think so. Download 7-zip to handle rar files.
by jj2007
Jun 09, 2018 10:23
Forum: General
Topic: new complete FB version ?
Replies: 34
Views: 1069

Re: new complete FB version ?

bluatigro wrote:can you give me link to the last win32 version


Direct link to the WinFBE 1.6.4. RAR archive - hope it helps.
by jj2007
Jun 08, 2018 5:09
Forum: Community Discussion
Topic: win an intel cpu
Replies: 2
Views: 126

Re: win an intel cpu

only available for residents of the following countries/regions: USA, Canada (excluding Quebec), UK, France, Germany, South Korea, Japan, Mainland China and Taiwan

Bad luck...
by jj2007
Jun 07, 2018 10:20
Forum: General
Topic: Possible to pass a single column of an array to a function?
Replies: 14
Views: 256

Re: Possible to pass a single column of an array to a function?

fxm wrote:But the most important question not addressed is why do you want to do that?
Indeed

Very useful indeed. Is the structure officially documented and guaranteed not to change?
by jj2007
Jun 06, 2018 18:58
Forum: General
Topic: Possible to pass a single column of an array to a function?
Replies: 14
Views: 256

Re: Possible to pass a single column of an array to a function?

Pass column -1 if it's a single dimension array.
by jj2007
Jun 01, 2018 8:42
Forum: Game Dev
Topic: Roll out the barrel
Replies: 15
Views: 323

Re: Roll out the barrel

Works great now, compliments!
by jj2007
Jun 01, 2018 7:00
Forum: Game Dev
Topic: Roll out the barrel
Replies: 15
Views: 323

Re: Roll out the barrel

It builds fine but tapping space doesn't do anything. Win7-64 here...

Go to advanced search