Search found 298 matches

by TeeEmCee
Aug 28, 2019 10:36
Forum: General
Topic: Sometimes I think the -gen gcc asm code emitter is totaly stupid :-)
Replies: 5
Views: 5448

Re: Sometimes I think the -gen gcc asm code emitter is totaly stupid :-)

Like IchMagBier wrote, you need to pass -O 1/2/3 to fbc, otherwise fbc invokes gcc with no optimisations. "gcc -O 0" produces very bad asm, yes, even significantly worse than fbc. Of course, because absolutely no optimisations are performed and every line is compiled independently. But eve...
by TeeEmCee
Aug 28, 2019 9:39
Forum: General
Topic: Inine assembler intel syntax with fallback x86 vs x86_64 and Windows vs Linux ABI.
Replies: 6
Views: 4455

Re: Inine assembler intel syntax with fallback x86 vs x86_64 and Windows vs Linux ABI.

Question 1: if __FB_ASM__ = "att" is defined(__FB_DARWIN__) redundant ? Yes, you should remove defined(__FB_DARWIN__), because even on Darwin the asm syntax isn't necessarily att: you can try to compile with intel syntax. I don't know whether it works yet with the latest toolchain, but it...
by TeeEmCee
Aug 27, 2019 8:19
Forum: Linux
Topic: FB breaks when upgrading to GCC 9.x without latest binutils/ld
Replies: 4
Views: 7921

Re: FB breaks when upgrading to GCC 9.x without latest binutils/ld

Yeah, that won't work, because fb_hRtInit and module constructor functions might end up in different sections: fbc -gen gcc translates "SUB foobar() CONSTRUCTOR" to "__attribute__(( constructor )) void FOOBAR( void )", which results in GCC 9.x putting a pointer in the .init_array...
by TeeEmCee
Jul 06, 2019 23:04
Forum: Linux
Topic: FB breaks when upgrading to GCC 9.x without latest binutils/ld
Replies: 4
Views: 7921

Re: FB breaks when upgrading to GCC 9.x without latest binutils/ld

You mean a testcase that will detect whether fb_hRtInit ran or not? I don't see any existing thing to check to determine that, e.g. __fb_is_inicnt isn't a global. I didn't try running the FB testcases to diagnose my problem.
by TeeEmCee
Jun 26, 2019 14:08
Forum: Community Discussion
Topic: any free BASIC for web/ios/android
Replies: 15
Views: 8708

Re: any free BASIC for web/ios/android

How about FreeBASIC? v1ctor ported it to emscripten/HTML5 (which still lives on a separate branch and hasn't been merged upstream) and I ported* it to Android ( without support for fbgfx! Also still not merged upstream). I was going to port it to iOS too but I didn't want to upgrade my ancient iphon...
by TeeEmCee
Jun 24, 2019 2:13
Forum: Linux
Topic: FB breaks when upgrading to GCC 9.x without latest binutils/ld
Replies: 4
Views: 7921

FB breaks when upgrading to GCC 9.x without latest binutils/ld

Just a small note in case this saves anyone some time and frustration: I just wasted about 5 hours trying to figure out why FB programs compiled with -mt (multithreading support) deadlocked after upgrading to gcc 9 even when not using the gcc emitter . It turns out that I upgraded the gcc packages f...
by TeeEmCee
Jun 24, 2019 1:51
Forum: Community Discussion
Topic: How to do -g but without assertions?
Replies: 21
Views: 11695

Re: How to do -g but without assertions?

Oh, awesome! Thank you for this, it's more than I could have hoped for. I will test it, since I happen to be adding better error reporting to my engine anyway (such as printing a backtrace on a crash), but will probably take me a couple days to get back to you. Lately I've been wishing I could turn ...
by TeeEmCee
May 03, 2019 14:46
Forum: Libraries
Topic: CGUI 2.1.0 update
Replies: 5
Views: 5565

Re: CGUI update

I tried fbfrog (1.12, built from git on 2017-10-05) on cgui 2.1.0 and it worked almost flawlessly, it only got confused by a couple #define constants. Maybe your fbfrog is too old?

Results: https://hastebin.com/uliconegov.txt
by TeeEmCee
May 03, 2019 14:30
Forum: Community Discussion
Topic: Please help me translate this Python code fragment to implement Steam Achievements
Replies: 21
Views: 5572

Re: Please help me translate this Python code fragment to implement Steam Achievements

I found a copy of libsteam_api.so on my system from 2013 (shipped with Half Life) and interestingly it contains a SteamUserStats function, while a 2019 copy doesn't. (Note that the Python code you're referencing is from 2015). In fact the list of functions exported in the 2013 API looks very differe...
by TeeEmCee
May 03, 2019 13:35
Forum: Community Discussion
Topic: How to do -g but without assertions?
Replies: 21
Views: 11695

Re: How to do -g but without assertions?

Years later, I still wish for these commandline options so I can get bounds checking without other stuff! For example, the null ptr checking can be really slow and add a lot of bloat to an executable. Also, it would be nice if you could get bounds/nullptr/rtlib checking but without the overhead of 4...
by TeeEmCee
May 15, 2018 6:26
Forum: Community Discussion
Topic: Windows 10 updates
Replies: 50
Views: 5453

Re: Windows 10 updates

Antivirus can't save you from them; you'll end with a horribly insecure OS over time. I'd like to challenge the truth of that statement (based on my statements above). If your point is that the addition of new features also introduces new bugs, and enlarges the attack surface, creating a piece of s...
by TeeEmCee
May 14, 2018 5:17
Forum: Projects
Topic: Toad on Fire - Dev Log
Replies: 7
Views: 1401

Re: Toad on Fire - Dev Log

I had wondered what had become of this. Looking great, and sounds like you're putting proper thought into game design too!
by TeeEmCee
May 14, 2018 5:09
Forum: Community Discussion
Topic: Windows 10 updates
Replies: 50
Views: 5453

Re: Windows 10 updates

Today I notice a screenres 640,480,32,,1 isn't a real fullscreen the toolbar or name it taskbar are visible looks bad for a game. I'm sure before last Windows 10 update it worked normal here. Joshy This is a bug in Windows 10 Creators Update, and it even affects AAA games ! I was hoping that Micros...
by TeeEmCee
Apr 15, 2018 8:22
Forum: Community Discussion
Topic: Random numbers
Replies: 20
Views: 2477

Re: Random numbers

Yes, it provides theoretical guarantees that existing hardware don't have, and it's quite interesting. Even it doesn't provide a perfectly uniform output (IIRC, creating a randomness extracter which is perfectly uniform is impossible). In practice I believe that and all other problems are trivially ...
by TeeEmCee
Apr 15, 2018 7:36
Forum: Community Discussion
Topic: Random numbers
Replies: 20
Views: 2477

Re: Random numbers

Quantum random number generator hardware for PCs/servers, as USB or PCI/PCIE plugins, have been commerically available for a long time, eg the Quantis first released in 2001. See https://en.wikipedia.org/wiki/Comparison_of_hardware_random_number_generators . I have some interest in this because it's...

Go to advanced search