Talk About Network

Google





Mac > Mac Programmer Tools > Re: (Assemblly ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 10 of 22 Topic 616 of 637
Post > Topic >>

Re: (Assemblly language) newbie wants to ****t Atari 68k to 'C'

by David Phillip Oster <oster@[EMAIL PROTECTED] > May 7, 2008 at 11:11 PM

In article 
<Pine.LNX.4.44.0805071236490.13992-100000@[EMAIL PROTECTED]
>,
 Beta Zero <beta_zero@[EMAIL PROTECTED]
> wrote:

> On Thu, 6 Mar 2008, rodmc wrote:
> >Subject: Re: Newbie
> >
> >Hi,
> >
> >I am in the same situation so if you are prepared to join the
> >Association of Computing Machinery ($99) per year you can get 
> >access to quite a few books on Objective-C, Mac programming
> >via their electronic books services (namely Safari). The book
> >you mention is on it as well as is "Programming in Objective-C" 
> >which although I bought in its real form some time ago I can
> >say is a good read for getting to grips with the basics of the 
> >language before diving into Mac OS X specifics.
> 
> Hi!  I'm relatively new to the Mac 'mini' and would like to ****t some
> vintage 68000 assembly language source over to 'C' on the Mac.  It's 
> pure 68000 code, and I regret to say I have zero experience with 'C.'
> 
> Do you know of any good books to get, or scope out?  Even if they are 
> hard to come by?  I want to ****t some Atari ST code over to the Mac.  
> I have about a meg of 68000 source code - that's not much but it 
> represents several years of handtinkering, and fine-tuning.  It's 
> independent of GEM binding (I always had trouble with GEM, so I 
> manhandled the thing into existence, occasionally delving into 
> supervisor mode when necessary.).
> 
> I was wondering if it would be easier hand-tinkering this into shape
> for execution on a Mac.  What is your favorite assembler for the Mac?
> 
> Are there any good books you can suggest?

Aaron Hillegas' "Cocoa Programming for OS X" 
http://www.amazon.com/Cocoa-Programming-Mac-OS-2nd/dp/0321213149
is the 
book to get. (Actually, the third edition, which isn't quite out yet, is 
the one to get.)

You'd have to be pretty crazy to program Macs in assembly language: a 
substantial fraction are Intel Macs. a substantial fraction are Power PC 
Macs. iPhones, and iPod Touches run OS X, but use the Arm processor. 
Macs have one to eight "cores" (Think independent CPUs). Some Macs have 
vector processing units. They have varying degrees of processing power 
in the video card. Future machines may be yet again different.

Do you want to spend your life coding for all the possible combinations 
of machines that will run your code?

If you call Apple's libraries, then you'll get optimized performance by 
experts of the whole range of current (and future!) hardware.

That said, you can intermix Objective-C, C, and C++, if you know what 
you are doing, and many people treat C as a universal assembler. You can 
pretty much do a one-to-one translation from a line of assembly language 
to a line of C. You'll produce hideous C, though.

Consider this web page:
http://www.vetta.org/2008/05/scipy-the-embarrassing-way-to-code/

The author describes how doing a blind translation from one language 
resulted in something much longer to write, and much slower to run, than 
taking advantage of the sup****t that was built-in.
 




 22 Posts in Topic:
Newbie
denis <dtheman@[EMAIL   2008-03-03 00:54:50 
Re: Newbie
Andrew <thecroft@[EMAI  2008-03-03 18:51:58 
Re: Newbie
denis <dtheman@[EMAIL   2008-03-03 21:16:13 
Re: Newbie
Gregory Weston <uce@[E  2008-03-04 11:20:23 
Re: Newbie
Andrew <thecroft@[EMAI  2008-03-04 15:42:33 
Re: (Assemblly language) newbie wants to port Atari 68k to 'C'
Robert Spykerman <robe  2008-05-09 23:02:06 
Re: (Assemblly language) newbie wants to port Atari 68k to 'C'
Sherman Pendley <spamt  2008-05-10 13:37:57 
Re: Newbie
rodmc <userprogoogle-1  2008-03-06 11:41:18 
(Assemblly language) newbie wants to port Atari 68k to 'C'
Beta Zero <beta_zero@[  2008-05-07 17:56:36 
Re: (Assemblly language) newbie wants to port Atari 68k to 'C'
David Phillip Oster <o  2008-05-07 23:11:20 
Re: (Assemblly language) newbie wants to port Atari 68k to 'C'
Gregory Weston <uce@[E  2008-05-08 11:41:57 
Re: (Assemblly language) newbie wants to port Atari 68k to 'C'
Robert Spykerman <robe  2008-05-11 01:31:12 
Re: (Assemblly language) newbie wants to port Atari 68k to 'C'
Sherman Pendley <spamt  2008-05-11 15:43:26 
Re: (Assemblly language) newbie wants to port Atari 68k to 'C'
Beta Zero <beta_zero@[  2008-05-08 17:25:49 
Re: (Assemblly language) newbie wants to port Atari 68k to 'C'
glenn andreas <gandrea  2008-05-09 11:24:28 
Re: (Assemblly language) newbie wants to port Atari 68k to 'C'
Jolly Roger <jollyroge  2008-05-09 17:24:59 
Re: (Assemblly language) newbie wants to port Atari 68k to 'C'
Beta Zero <beta_zero@[  2008-05-11 01:31:05 
Re: (Assemblly language) newbie wants to port Atari 68k to 'C'
Paul Russell <prussell  2008-05-11 16:41:23 
Re: (Assemblly language) newbie wants to port Atari 68k to 'C'
Robert Spykerman <robe  2008-05-09 02:43:34 
Re: (Assemblly language) newbie wants to port Atari 68k to 'C'
Sherman Pendley <spamt  2008-05-09 17:25:07 
Re: (Assemblly language) newbie wants to port Atari 68k to 'C'
Beta Zero <beta_zero@[  2008-05-12 01:08:38 
Re: (Assemblly language) newbie wants to port Atari 68k to 'C'
Paul Russell <prussell  2008-05-12 08:25:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 23:27:36 PST 2009.