MAMEWorld >> News
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM
Re: MAME? In my browser? It's more likely than you think.
10/05/11 05:26 AM


Very awesome. Very awesome, indeed.

I noticed that they encountered some porting issues, mainly symbol conflicts with newlib.

Are any of those changes getting ported back to baseline MAME? It seems like it would be a good idea.


Quote:


The Native Client toolchain currently ships with newlib, which is a lightweight libc implementation that differs slightly from the more commonly used glibc. The newlib-related problems we encountered during the port were all minor and could be fixed in a few minutes. We list them here for completeness:

- One of the MAME classes had a member named getc, which clashed with the newlib macro for getc. It is not clear why this did not cause problems with glibc. We fixed this problem by simply inserting "#undef getc" just before the field.

- The sound emulation defined a static variable named infinity, which clashed with a symbol defined by the math library. We fixed this problem by simply renaming infinity to spu_infinity.

- Another part of sound emulation #defined its own version of log2(), which was already defined in the math library. Guarding it with #if !defined(log2) solved the problem.

- In the CPU emulation, an enum contained the symbol _ADD, which clashed with some unknown header file #define. Adding #undef _ADD before the enum fixed the problem.




However, rather than #undef conflicts, I'd rename the member/variable in question.


GroovyMAME support forum on BYOAC







Entire thread
Subject Posted by Posted on
* MAME? In my browser? It's more likely than you think. R. Belmont 10/04/11 04:34 PM
. * Re: MAME? In my browser? It's more likely than you think. Digitalghost  10/11/11 01:00 AM
. * Re: MAME? In my browser? It's more likely than you think. drewcifer  10/11/11 01:50 AM
. * Re: MAME? In my browser? It's more likely than you think. Firehawke  10/07/11 03:27 PM
. * Re: MAME? In my browser? Thats so 2005 mamegod  10/05/11 08:09 PM
. * Re: MAME? In my browser? Thats so 2005 R. Belmont  10/05/11 09:19 PM
. * Re: MAME? In my browser? Thats so 2005 StilettoAdministrator  10/05/11 09:46 PM
. * Re: MAME? In my browser? It's more likely than you think. Naibo  10/05/11 06:44 AM
. * Re: MAME? In my browser? It's more likely than you think. krick  10/05/11 05:26 AM
. * Re: MAME? In my browser? It's more likely than you think. R. Belmont  10/05/11 04:15 PM
. * Re: MAME? In my browser? It's more likely than you think. jonwil  10/05/11 01:42 AM
. * Re: MAME? In my browser? It's more likely than you think. R. Belmont  10/07/11 04:17 PM
. * Re: MAME? In my browser? It's more likely than you think. Tomu Breidah  10/05/11 01:22 AM
. * Re: MAME? In my browser? It's more likely than you think. R. Belmont  10/07/11 04:18 PM
. * Re: MAME? In my browser? It's more likely than you think. Tomu Breidah  10/07/11 04:49 PM
. * Then again, I can't recall the last time I was able to play MAME in windowed mode. [nt] Tomu Breidah  10/10/11 03:15 PM
. * Re: MAME? In my browser? It's more likely than you think. etabeta  10/05/11 01:48 PM
. * Re: MAME? In my browser? It's more likely than you think. Tomu Breidah  10/05/11 04:35 PM
. * Re: MAME? In my browser? It's more likely than you think. B2K24  10/04/11 11:38 PM
. * Re: MAME? In my browser? It's more likely than you think. Cyberzinho Punk  10/04/11 08:15 PM
. * and for those of you playing the home game... StilettoAdministrator  10/04/11 05:39 PM
. * Re: and for those of you playing the home game... "The Manuel"  10/04/11 06:18 PM
. * Re: MAME? In my browser? It's more likely than you think. italieAdministrator  10/04/11 05:31 PM
. * Re: MAME? In my browser? It's more likely than you think. R. Belmont  10/05/11 12:20 AM
. * Re: MAME? In my browser? It's more likely than you think. T-2000  10/05/11 01:04 AM
. * Re: MAME? In my browser? It's more likely than you think. R. Belmont  10/05/11 04:29 AM
. * Re: MAME? In my browser? It's more likely than you think. mogli  10/05/11 01:56 AM
. * Re: MAME? In my browser? It's more likely than you think. etabeta  10/05/11 01:45 PM
. * Re: MAME? In my browser? It's more likely than you think. Cypress  10/04/11 05:01 PM
. * Re: MAME? In my browser? It's more likely than you think. mesk  10/05/11 05:02 PM

Extra information Permissions
Moderator:  John IV, Robbbert, Tafoid 
0 registered and 96 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 5086