TweetFollow Us on Twitter

Jul 00 Factory Floor

Volume Number: 16 (2000)
Issue Number: 7
Column Tag: From the Factory Floor

Arnold goes to WWDC

By Richard Atwell, ©2000 by Metrowerks, Inc., all rights reserved

Another Worldwide Developer's Conference (WWDC) hosted by Apple has come and gone and once again Metrowerks was there in person to meet with you, listen to your feedback and converse about the future of CodeWarrior.

This year we sent more engineers than in previous years, which was fortunate because attendance this year was at record levels and we would have been swamped due to the excitement built around the upcoming Mac OS X.

We were present in the exhibit hall for the first two days it was open, as we were last year, and we gave out thousands of copies of a special WWDC CD containing a beta version of new CodeWarrior tools for Mac OS X. Those tools will become part of CodeWarrior for Mac OS, Version 6.0. By the time this article hits the stands, the CD will have expired and Version 6.0 will be very close to shipping, if it hasn't shipped already.

Last year we had a single keynote event to talk about the current state of CodeWarrior, but this year, in addition to our booth in the exhibit hall, we hosted and attended several sessions.

Here's an overview of what went down in case you missed it.

Session: Mac OS X THIRD Party Tools

Presenter: Berardino Baratta,

Vice President of Software Engineering

After Real Basic demonstrated their latest offering (written using CodeWarrior, by the way) Berardino gave his CodeWarrior state of the union address and showed off the latest IDE (IDE 4.1) that will ship with Version 6.0.

The IDE has been fully Carbonized, as have our support libraries, PowerPlant and other development tools like Constructor and Profiler. This is our Carbon release for Mac OS X developers and the basis for Metrowerks' future development on the Mac OS platform.

When running on Mac OS X, the IDE exhibits the attractive new Aqua interface. It's interesting to note that the IDE itself is written with CodeWarrior using PowerPlant, so your applications will look "Aquafied" if you use PowerPlant as the framework on which to base your application.

At the end of his session, Berardino answered many questions from the audience. Of note, attendees asked about Pascal support. Metrowerks didn't ship Pascal tools and support libraries for CodeWarrior for Mac OS, Version 5.0 — the first time in several releases that we had not. At the time, however, we made a promise to deliver those tools at a later date. Berardino reiterated that promise to update our Pascal tools, which will be based on Version 6.0 and which will ship one last time shortly after Version 6.0 ships.

Version 6.0 will also be the last release to support 68K code generation since Mac OS X only runs on recent PowerPC-based Macs. The demand for generating fat binaries has dropped dramatically and Berardino stated that after Version 6.0 those tools will be put into maintenance mode and decisions about availability will be made at a future date.

The other popular question was when is Metrowerks going to deliver Mach-O tools? First, the Version 6.0 CD will contain our latest Mach-O plugins in pre-release form. We will also provide a command line compiler to substitute for the GCC compiler that ships with Mac OS X. We will follow that with support for debugging Mach-O binaries, which contain stabs symbolics that run on Mac OS X.

The BoF (Birds of a Feather)

Presenters: Tim Freehill, Director of Desktop Products and Matt Henderson, Mac OS X Technical Lead

This session was our "Birds of a Feather" session. The theme was "CodeWarrior is now rated X". We gave away more beta CDs, threw t-shirts into the audience and raffled off a new Powerbook — so naturally a riot broke out.

Tim was emcee for the evening and introduced Matt, who ran through a demonstration of the latest tools.

Our engineers took questions from the audience and after we ran out of shirts and beta CDs we drew the winning entry for the Powerbook. Congratulations to the winner: Mark Nelson from the Vancouver Film School. We also gave away five three-year subscriptions to CodeWarrior.

Session: Tuning for MP and Velocity Engine

Presenters: Bob Campbell, PPC Compiler Lead,

Ken Ryall, Debugger Lead Engineer and

Richard Atwell, Mac OS Debugger Engineer

Velocity Engine is Apple's name for the AltiVec unit that is integrated into the Motorola PowerPC 7400 that ships in every PowerMac G4. Bob opened the session with an explanation of vectorization tips that CodeWarriors need to consider when writing AltiVec code.

Bob talked about data alignment issues, which affect performance and correctness. Many of these concerns are taken care of by using our MSL and runtime libraries, but data alignment is always an important consideration since the AltiVec unit works best with chunks of 16-byte aligned data.

Bob went on to explain some features of the AltiVec instruction set and ran through a demo of some AltiVec enhanced code. The results were compelling: a scalar image rotation routine that was highly optimized as scalar code processed approximately four mega-pixels per second. The AltiVec version using "all the tricks" benchmarked at 25 mega-pixels per second.

Afterwards, I demonstrated the features of the debugger that support AltiVec. CodeWarrior displays the individual scalar elements of each vector just as the fields of C structures are disclosed. To aid with debugging, all elements are editable and are highlighted in red when the values change.

To support vector editing at the register level, there is a new resizable register window that allows you to edit vectors in registers as more manageable 32-bit values. Values can be viewed as hex or floating point. Just like the variable view, as scalars are updated they are highlighted in red to show you how the register changed.

Finally, I demonstrated support for expression evaluation using scalar elements and showed how a conditional breakpoint could set on a portion of a vector register using the vector.[scalar] notation that we invented for this purpose. See the From the Factory Floor column on AltiVec from last year (MacTech Magazine - July, 1999) for a complete description of AltiVec support in CodeWarrior.

Next I presented the multiprocessing (MP) portion of the session. I took the CloseViewMP sample application from the Multiprocessing 2.1 SDK and debugged it using the beta tools for Mac OS X. The CloseViewMP code makes a good demo because it's visual: the application creates an MP task that continuously draws in a window whether you are holding down menus or moving windows which would normally halt any live updating in the UI. The window of course runs in the cooperative task.

Debugger support for MP 2.x exists in the Process window that shows you the list of cooperative threads and MP tasks belonging to each application. Debugging windows appear for each thread or task that generates an exception, such as hitting a breakpoint. Just like separate threads, you can step through code at any time independent of the state of other threads or tasks. Finally, register windows for all three register files (GPR, FPR and AltiVec) are available for each thread or task and, to aid with navigation, the window titles indicate which is which.

Session: Debugging Apps on Mac OS X

Presenter: Ken Ryall, Lead Debugger Engineer

This session began with a few demos from Apple and Ken followed with a demonstration of single machine debugging using the IDE 4.1.

In Version 5.0 we shipped an early remote debugger for Mac OS X. This consisted of the IDE 4.0, it's preference panels and debugging plugins, all of which allowed you to remotely debug Carbon-PEF based applications running on Mac OS X from an IDE hosting machine running Mac OS 9. The other piece of the debugging technology consisted of a resident debugging nub, such as MetroNub, that the IDE uses to control processes on the target machine.

Ken demonstrated how to debug a carbonized PowerPlant sample application from Mac OS X. With this level of support, it's possible to debug any combination of Mac OS X and Mac OS 9 machines.

Taking things a step further, Ken showed a new set of panels for remote debug settings. A new remote connections panel allows developers to define any set of remote TCP/IP connections much like an address book. This change allows the IDE to debug remotely or locally at the target level instead of running the IDE in one mode or the other.

Additional target settings panels allow you to choose which remote connection you'd like to use and allow you to specify the remote folder where you'd like to debug the target. The panels also let you choose the location of the remote host application that will host the shared libraries you'd like to debug. We also demonstrated upcoming support to allow you to move support files to the machine under remote control.

See 'Ya

Well that's it for this WWDC. See you next year. As always, visit our newsgroup or send us email directly.


Richard Alexander David Atwell, a.k.a. "ratwell," works on Metrowerks' CodeWarrior integrated debugger at the company's Austin-based headquarters. Richard welcomes your feedback and questions on any topic. You can reach him at ratwell@metrowerks.com.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Ride into the zombie apocalypse in style...
Back in the good old days of Flash games, there were a few staples; Happy Wheels, Stick RPG, and of course the apocalyptic driver Earn to Die. Fans of the running over zombies simulator can rejoice, as the sequel to the legendary game, Earn to Die... | Read more »
Top Mobile Game Discounts
Every day, we pick out a curated list of the best mobile discounts on the App Store and post them here. This list won't be comprehensive, but it every game on it is recommended. Feel free to check out the coverage we did on them in the links below... | Read more »
Netflix Games expands its catalogue with...
It is a good time to be a Netflix subscriber this month. I presume there's a good show or two, but we are, of course, talking about their gaming service that seems to be picking up steam lately. May is adding five new titles, and there are some... | Read more »
Pokemon Go takes a step closer to real P...
When Pokemon Go was first announced, one of the best concepts of the whole thing was having your favourite Pokemon follow you in the real world and be able to interact with them. To be frank, the AR Snapshot tool could have done a lot more to help... | Read more »
Seven Knights Idle Adventure drafts in a...
Seven Knights Idle Adventure is opening up more stages, passing the 15k mark, and players may find themselves in need of more help to clear these higher stages. Well, the cavalry has arrived with the introduction of the Legendary Hero Iris, as... | Read more »
AFK Arena celebrates five years of 100 m...
Lilith Games is quite the behemoth when it comes to mobile games, with Rise of Kingdom and Dislyte firmly planting them as a bit name. Also up there is AFK Arena, which is celebrating a double whammy of its 5th anniversary, as well as blazing past... | Read more »
Fallout Shelter pulls in ten times its u...
When the Fallout TV series was announced I, like I assume many others, assumed it was going to be an utter pile of garbage. Well, as we now know that couldn't be further from the truth. It was a smash hit, and this success has of course given the... | Read more »
Recruit two powerful-sounding students t...
I am a fan of anime, and I hear about a lot that comes through, but one that escaped my attention until now is A Certain Scientific Railgun T, and that name is very enticing. If it's new to you too, then players of Blue Archive can get a hands-on... | Read more »
Top Hat Studios unveils a new gameplay t...
There are a lot of big games coming that you might be excited about, but one of those I am most interested in is Athenian Rhapsody because it looks delightfully silly. The developers behind this project, the rather fancy-sounding Top Hat Studios,... | Read more »
Bound through time on the hunt for sneak...
Have you ever sat down and wondered what would happen if Dr Who and Sherlock Holmes went on an adventure? Well, besides probably being the best mash-up of English fiction, you'd get the Hidden Through Time series, and now Rogueside has announced... | Read more »

Price Scanner via MacPrices.net

Retailers are clearing out 9th-generation iPa...
With the introduction of new iPad Air and iPad Pros, along with newly discounted 10th-generation iPads, several Apple retailers are clearing out their remaining stock of 9th-generation iPads. Prices... Read more
Apple Studio Display with Standard Glass on s...
Best Buy has the standard-glass Apple Studio Display on sale for $300 off MSRP for a limited time. Their price is the lowest available for a Studio Display among Apple’s retailers. Shipping is free... Read more
AirPods Max headphones back on sale for $449,...
Amazon has Apple AirPods Max headphones in stock and on sale for $100 off MSRP, only $449. The sale price is valid for all colors at the time of this post. Shipping is free: – AirPods Max: $449.99 $... Read more
Deal Alert! 13-inch M2 MacBook Airs on record...
Amazon has 13″ MacBook Airs with M2 CPUs in stock and on sale this week for only $829 in Space Gray, Silver, Starlight, and Midnight colors. Their price is $170 off Apple’s MSRP, and it’s the lowest... Read more
Apple Watch Ultra 2 on sale for $50 off MSRP
Best Buy is offering Apple Watch Ultra 2 models for $50 off MSRP on their online store this week. Sale prices available for online orders only, in-store prices may vary. Order online, and choose free... Read more
Apple introduces the new M4-powered 11-inch a...
Today, Apple revealed the new 2024 M4 iPad Pro series, boasting a surprisingly thin and light design that pushes the boundaries of portability and performance. Offered in silver and space black... Read more
Apple introduces the new 2024 11-inch and 13-...
Apple has unveiled the revamped 11-inch and brand-new 13-inch iPad Air models, upgraded with the M2 chip. Marking the first time it’s offered in two sizes, the 11-inch iPad Air retains its super-... Read more
Apple discontinues 9th-gen iPad, drops prices...
With today’s introduction of the new 2024 iPad Airs and iPad Pros, Apple has (finally) discontinued the older 9th-generation iPad with a home button. In response, they also dropped prices on 10th-... Read more
Apple AirPods on sale for record-low prices t...
Best Buy has Apple AirPods on sale for record-low prices today starting at only $79. Buy online and choose free shipping or free local store pickup (if available). Sale price for online orders only,... Read more
13-inch M3 MacBook Airs on sale for $100 off...
Best Buy has Apple 13″ MacBook Airs with M3 CPUs in stock and on sale today for $100 off MSRP. Prices start at $999. Their prices, along with Amazon’s, are the lowest currently available for new 13″... Read more

Jobs Board

Senior Software Engineer - *Apple* Fundamen...
…center of Microsoft's efforts to empower our users to do more. The Apple Fundamentals team focused on defining and improving the end-to-end developer experience in Read more
*Apple* Systems Administrator - JAMF - Activ...
…**Public Trust/Other Required:** None **Job Family:** Systems Administration **Skills:** Apple Platforms,Computer Servers,Jamf Pro **Experience:** 3 + years of Read more
Relationship Banker *Apple* Valley Main - W...
…Alcohol Policy to learn more. **Company:** WELLS FARGO BANK **Req Number:** R-367184 **Updated:** Wed May 08 00:00:00 UTC 2024 **Location:** APPLE VALLEY,California Read more
Rehabilitation Technician - *Apple* Hill (O...
Rehabilitation Technician - Apple Hill (Outpatient Clinic) - PRN Location: York Hospital, York, PA Schedule: PRN/Per Diem Sign-On Bonus Eligible Remote/Hybrid Read more
LPN-Physician Office Nurse - Orthopedics- *Ap...
LPN-Physician Office Nurse - Orthopedics- Apple Hill Location: WellSpan Medical Group, York, PA Schedule: Full Time Sign-On Bonus Eligible Remote/Hybrid Regular Apply Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.