Search found 262 matches

by TeeEmCee
Mar 23, 2018 8:17
Forum: General
Topic: SetUnhandledExceptionFilter in 64 bit
Replies: 42
Views: 2487

Re: SetUnhandledExceptionFilter in 64 bit

I just found out that SetUnhandledExceptionFilter works in 64 bit like a charm with the following compiler switches: -gen gcc -Wc -fexceptions -Wc -funwind-tables This isn't right; fbc only accepts a single -Wc argument. Specifying -Wc twice causes the second to override the first one. You have to ...
by TeeEmCee
Mar 22, 2018 2:15
Forum: General
Topic: SetUnhandledExceptionFilter in 64 bit
Replies: 42
Views: 2487

Re: SetUnhandledExceptionFilter in 64 bit

SEH and SetUnhandledExceptionFilter makes a lot more sense after reading this: https://msdn.microsoft.com/en-us/library/windows/desktop/ms679353(v=vs.85).aspx I'm jealous that Microsoft implemented something superior to standard C++ exceptions (and to the DWARF and SJLJ exception handling supported ...
by TeeEmCee
Mar 22, 2018 1:57
Forum: Community Discussion
Topic: Speed of FreeBasic
Replies: 62
Views: 7172

Re: Speed of FreeBasic

You can't compare the speed of C and FB unless you run both on the same hardware! Quoting timings of just one is useless. I compared srvaldez's n-body code against C++: cpu: AMD FX-6100 (Bulldozer) @ 3.3GHz (with boosting above 3.3GHz disabled in BIOS) fbc: 1.06 built from git gcc: 7.3.0 linux 4.14....
by TeeEmCee
Mar 21, 2018 21:47
Forum: Community Discussion
Topic: New version?
Replies: 47
Views: 5797

Re: New version?

Most users are likely to use the latest official release rather than an unofficial build. The time between releases does signal how active the project is, so it looks bad to wait too long. I've made the huge mistake of waiting 3 years between releases of an actively developed project, and many peopl...
by TeeEmCee
Mar 21, 2018 10:03
Forum: General
Topic: SetUnhandledExceptionFilter in 64 bit
Replies: 42
Views: 2487

Re: SetUnhandledExceptionFilter in 64 bit

Thanks for writing this up! I certainly learnt from it. Didn't know about AddVectoredExceptionHandler, and I haven't looked into how things work in 64 bit Windows, since I'm content to avoid additional compiles. I wasn't expecting that you're instrumenting the code, but it makes perfect sense. I exp...
by TeeEmCee
Mar 18, 2018 2:24
Forum: General
Topic: SetUnhandledExceptionFilter in 64 bit
Replies: 42
Views: 2487

Re: SetUnhandledExceptionFilter in 64 bit

Oh, OK. You do list win XP as supported. I don't have a more recent copy of Windows. JK-IDE also works under wine, and I don't see any of those problems. However, I can't compile under wine, the program freezes. I'm not at all surprised that compiling doesn't work under wine, though; more likely to ...
by TeeEmCee
Mar 17, 2018 16:14
Forum: Community Discussion
Topic: D language as a basis for a Basic
Replies: 19
Views: 2006

Re: D language as a basis for a Basic

caseih: agreed with you wrt to Python. I write a lot of Python, and find the indentation pleasant because it means shorter code and less typing, even though on some occasions I've managed to get confused while refactoring. The problem with automatic translation into other languages like C++ is that ...
by TeeEmCee
Mar 17, 2018 15:44
Forum: General
Topic: SetUnhandledExceptionFilter in 64 bit
Replies: 42
Views: 2487

Re: SetUnhandledExceptionFilter in 64 bit

@TeeEmCee would it be possible to get your test code, which crashed the IDE in SCILEXER.DLL? Please drop me a mail at jk-ide at t minus online dot de - thanks. It didn't occur to me that the problems I saw might be related to what file I had open, because they happen even if I don't have any file o...
by TeeEmCee
Mar 16, 2018 10:19
Forum: Community Discussion
Topic: D language as a basis for a Basic
Replies: 19
Views: 2006

Re: D language as a basis for a Basic

D's slices seem nicer than C++'s pairs of iterators. I didn't get very far with learning D, but it definitely seems to be a big improvement over C++98. Not sure how it's evolved since. I had thought FB uses SDL, but actually I think it uses X directly. Right, it uses X directly, and doesn't use SDL ...
by TeeEmCee
Mar 16, 2018 10:07
Forum: General
Topic: SetUnhandledExceptionFilter in 64 bit
Replies: 42
Views: 2487

Re: SetUnhandledExceptionFilter in 64 bit

So you implemented your own STABS parser then? Or DWARF parser? I don't know what PB uses. I tried running JK-IDE in a Windows VM. It seems to have a very impressive range of features! But when I put the path to fbc in the 'paths' window and clicked Apply, the program took ~5 seconds to respond, and...
by TeeEmCee
Mar 14, 2018 13:59
Forum: General
Topic: SetUnhandledExceptionFilter in 64 bit
Replies: 42
Views: 2487

Re: SetUnhandledExceptionFilter in 64 bit

For PowerBASIC i added a feature "Compile (GPF)", which creates a special build, trapping GPFs and showing the offending line in the code editor with some information, why this happend. Obviously this is something you wouldn´t need all the time, but when you need it, it can be invaluable,...
by TeeEmCee
Mar 03, 2018 2:47
Forum: Community Discussion
Topic: no warning on missing constructor
Replies: 5
Views: 877

Re: no warning on missing constructor

Oh, well that explains it. OSX's ld is an ancient fork of BSD ld, and doesn't demangle symbols. FreeBSD, NetBSD, OpenBSD, Linux, Mingw/Windows all use the GNU linker, which demangles symbols. GNU ld and GNU gold don't even support OSX last I checked, because it's very peculiar. You're out of luck.
by TeeEmCee
Mar 03, 2018 2:41
Forum: Projects
Topic: fbfrog header translator
Replies: 52
Views: 10987

Re: fbfrog header translator

The GNU linker prefers to link .dlls over .a files. I would have thought that removing the .dll.a file would prevent that. Maybe you need to remove the .dll too?
Did the link errors you saw refer to the .dll or to the .a file?
by TeeEmCee
Mar 02, 2018 2:08
Forum: Community Discussion
Topic: no warning on missing constructor
Replies: 5
Views: 877

Re: no warning on missing constructor

What OS are you using? I assume Windows, because there's an extra leading underscore on the symbol name.
If you pass "-Wl --demangle" to fbc when compiling, does it demangle the name? What about "-Wl --demangle=gnu"?
by TeeEmCee
Mar 02, 2018 2:02
Forum: Tips and Tricks
Topic: gcc extended asm
Replies: 9
Views: 1142

Re: gcc extended asm

Yes, fbc already does that and other processing for intel syntax. The suffixes added to variable names are quite annoying also when using a debugger. I think coderjeff or someone else has a fork which doesn't add those suffixes. I presume they're for scopes. But -gen gcc targets C99, not C89, and th...

Go to advanced search