Previous Thread
Next Thread
Print Thread
Page 2 of 9 1 2 3 4 5 6 7 8 9
Joined: Feb 2004
Posts: 2,625
Likes: 332
Very Senior Member
Very Senior Member
Joined: Feb 2004
Posts: 2,625
Likes: 332
You're supposed to write those functions in assembly language.

Joined: Mar 2001
Posts: 17,258
Likes: 267
R
Very Senior Member
Very Senior Member
R Offline
Joined: Mar 2001
Posts: 17,258
Likes: 267
Given we're talking about a single-processor target (at least for N900/Pandora - other ARM device mileage may vary) they can probably be relatively trivially stubbed in C.

Joined: Dec 2009
Posts: 24
F
Member
Member
F Offline
Joined: Dec 2009
Posts: 24
Thanks, i knew there was some stuff like that in there and rbelmont is working on it. I guess it's not all been given a c alternative yet in this version.

edit: oops i'm slow. I'll take a look at the code later and see if i can do so.

Last edited by Flandry; 12/04/09 10:51 PM.
Joined: Jul 2006
Posts: 87
L
Member
Member
L Offline
Joined: Jul 2006
Posts: 87
Wouldn't it be enough to define NO_THREAD_COOPERATIVE in the SDL makefile?

BTW, you'll probably be disappointed by the speed of MAME on Cortex-A8.

Last edited by ldesnogu; 12/08/09 11:13 AM.
Joined: Feb 2007
Posts: 507
C
Senior Member
Senior Member
C Offline
Joined: Feb 2007
Posts: 507
Originally Posted by ldesnogu
Wouldn't it be enough to define NO_THREAD_COOPERATIVE in the SDL makefile?
That is completely unrelated to inlined assembler functions. Apart from the fact that the NO_THREAD_COOPERATIVE define is history now...

Joined: Sep 2004
Posts: 392
Likes: 4
A
Senior Member
Senior Member
A Offline
Joined: Sep 2004
Posts: 392
Likes: 4
Just use osdmini/miniwork.c instead of the one that comes with the SDL port and you should be good.

Joined: Dec 2009
Posts: 24
F
Member
Member
F Offline
Joined: Dec 2009
Posts: 24
Actually there's code to that effect if SDLMAME_NOASM is defined, and it looks like that will be defined if NOASM is defined (i'm guessing that's what DEFS += -DSDLMAME_NOASM does), but i don't see where NOASM should be defined. Perhaps a (commented out by default) line is missing from the user config section of the make files?

Joined: Mar 2001
Posts: 17,258
Likes: 267
R
Very Senior Member
Very Senior Member
R Offline
Joined: Mar 2001
Posts: 17,258
Likes: 267
The user config section of the makefile is deprecated. Pass parameters directly on the command line (or define them in your environment with .bashrc or whatever).

% make NOASM=1

Last edited by R. Belmont; 12/10/09 05:37 PM.
Joined: Dec 2009
Posts: 24
F
Member
Member
F Offline
Joined: Dec 2009
Posts: 24
Ah, thanks.

Perhaps it should be removed or a comment noting that fact added, then. Anyway, presumably there's a reference if the makefile itself isn't it. where can a reference of valid parameters be found?

Joined: Dec 2009
Posts: 24
F
Member
Member
F Offline
Joined: Dec 2009
Posts: 24
With the noasm flag, it compiles and links for the armel target. It also compiles (as it did before) and runs (with working output now) on the x86 SDK, but veeeerrry slowly.

I'm still waiting for delivery of my N900 to do on-device testing, but this seems like a good start!

What bit of the project should i focus on to start optimizing it? If you give me a specific task and context, i can probably contribute; i just don't have any general understanding of the project as a whole.

Last edited by Flandry; 12/10/09 06:44 PM.
Page 2 of 9 1 2 3 4 5 6 7 8 9

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
1 members (yugffuts), 177 guests, and 0 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,355
Posts122,424
Members5,082
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Powered by UBB.threads™ PHP Forum Software 8.0.0