Search found 225 matches

by Halifax
Sun 24 May, 2009 1:01 am
Forum: Programming Help
Topic: Why asm sucks today.
Replies: 11
Views: 10824

Re: Why asm sucks today.

darkstone knight wrote:if you think available debuggers suck, write your own :pirate:
Or just improve WabbitEmu's already established debugger.
by Halifax
Wed 20 May, 2009 3:57 am
Forum: Off Topic
Topic: GNU superoptimizer?
Replies: 8
Views: 11700

Re: GNU superoptimizer?

Yup, it was as I thought. You were talking about using MinGW from the command-line shell. Just remember, Code::Blocks is just an IDE that handles all the low-level things]. So you are still using MinGW through Code::Blocks, but you just don't have to worry yourself with the all the jargon that comes...
by Halifax
Tue 19 May, 2009 3:25 am
Forum: Off Topic
Topic: GNU superoptimizer?
Replies: 8
Views: 11700

Re: GNU superoptimizer?

Wait, are you talking about MinGW or Code::Blocks? At any rate, if you were talking about Code::Blocks, then honestly what does MSVC offer over it? I've had no problems with Vista when I downloaded the installer and installed Code::Blocks with MinGW included. The debugger works like a charm and ther...
by Halifax
Mon 18 May, 2009 6:23 pm
Forum: Off Topic
Topic: GNU superoptimizer?
Replies: 8
Views: 11700

Re: GNU superoptimizer?

Well..MSVC doesn't exactly support the standard either, so I would just go with the lesser of two evils. It's not that hard to get GCC up and running on Windows. And if you really don't feel like doing it yourself, then just download Code::Blocks with the MinGW install.
by Halifax
Wed 30 Jul, 2008 5:14 pm
Forum: Announce Your Projects
Topic: space shooter
Replies: 30
Views: 29095

Cool, looking good.
by Halifax
Fri 25 Jul, 2008 10:55 pm
Forum: Announce Your Projects
Topic: space shooter
Replies: 30
Views: 29095

Hey, this looks pretty cool. I like this game. My only criticism is the enemies and how they release their bullets at the same time.
by Halifax
Sun 20 Jul, 2008 9:53 pm
Forum: Programming Help
Topic: [C] Fast Z80 opcode matching
Replies: 5
Views: 3692

Dwedit wrote:Yay, finite state machines! It's a good way to recognize instructions.
The other good way is to just use a hashtable.
*bump* (sorry)

Yeah, I agree with that. And for the less experienced, or ones without libraries for that, there is always the binary search. All you need to do is sort the list.
by Halifax
Wed 05 Dec, 2007 12:45 am
Forum: Program Ideas
Topic: Z80 peephole optimizer
Replies: 8
Views: 8923

This is already tied into the backend of SDCC. If you check the SVN right now, you can see the file that contains all the peephole optimizations which are very numerous, verging on 300 the last time I looked.
by Halifax
Fri 23 Nov, 2007 12:52 am
Forum: Programming Help
Topic: [C] Type punning acceptable on float?
Replies: 20
Views: 4676

Yes you shouldn't try to out think a compiler, you should read the source code to the compiler.
by Halifax
Thu 22 Nov, 2007 7:37 pm
Forum: Programming Help
Topic: [C] Type punning acceptable on float?
Replies: 20
Views: 4676

Assembler compiled with 'gcc' (3.4.2) .ident "GCC: (GNU) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)" At any rate thats a bad example. If your using floats, you need to have some real float math going on. Goplat is probably right, even if it is inlined if its in the FPU its probably faster to do the co...
by Halifax
Thu 22 Nov, 2007 6:39 am
Forum: Programming Help
Topic: [C] Type punning acceptable on float?
Replies: 20
Views: 4676

Haha, yes with the switch -O3 ;) C code: #include <stdio.h> int is_negative(float x) { unsigned int *ui = (unsigned int *)&x; return (*ui >> 31); } int main(int argc, char **argv) { printf("%d\n", is_negative(strtod(argv[1], NULL))); return 0; } Assembler compiled with 'gcc' (3.4.2) .t...
by Halifax
Wed 21 Nov, 2007 11:01 pm
Forum: Programming Help
Topic: [C] Type punning acceptable on float?
Replies: 20
Views: 4676

I think you should look at the assembly, because modern compilers most definitely don't inline functions like that. You should either explicity suggest, or never suspect that it is inlined.
by Halifax
Sun 18 Nov, 2007 10:34 pm
Forum: Off Topic
Topic: Share your desktops
Replies: 109
Views: 45466

Image

*Halifax really has to clean up his desktop
by Halifax
Sun 18 Nov, 2007 12:32 am
Forum: Off Topic
Topic: Share your desktops
Replies: 109
Views: 45466

Haha, yeah right.
by Halifax
Sat 17 Nov, 2007 6:07 pm
Forum: Announce Your Projects
Topic: The Forgotten Sword
Replies: 160
Views: 93654

The max size for photobucket is 1024*768, but I wouldn't advise you to post that on the message board, lol. ;)

Either way, you are still doing a good job. Keep up the work!