TweetFollow Us on Twitter

Jun 96 Factory Floor
Volume Number:12
Issue Number:6
Column Tag:From The Factory Floor

The CodeWarrior IDE

By Dave Mark

This month, we’re going to talk to the folks responsible for the CodeWarrior IDE. By the time you read this, Metrowerks will have shipped their ninth release of CodeWarrior. In that time, the IDE has changed significantly. However, there is still a lot of growing room left. This interview focuses on some of the changes that have already taken place, and offers a glimpse into the future of the IDE.

Dave: Where do you see the IDE going from here? What kind of changes are coming?

Berardino: The IDE has come a long way in the past two years, but we feel that a lot remains to be done. The main goal for the near future is to improve the IDE’s ability to handle large projects involving multiple developers. Also, with the growth of object-oriented languages, we’ve added an object browser to the IDE which shipped with CW/8 and will go final with CW/9 - but that’s just the first release. Many more improvements are planned in that area.

Many complex projects involve the building of multiple final binaries, which is usually not easily supported in a project-based development environment. We plan to address this problem through support for intelligent nested projects, along with support for multiple output targets from the same project. The build system will also be improved in order to better support compiler chaining, where one compiler’s output is passed along to another compiler before generating a final object file (yacc is a good example of this). Source code control will be addressed by adding integrated support for our CodeManager system, which is the MacOS version of Microsoft’s SourceSafe.

Dan: We’re just finishing the first release of the source code browser. It’s really helpful for navigating and editing source code, classes in particular. You can browse the full class hierarchy, or open a separate browser on an individual class. Also, you can see all the types, globals, constants, enums, functions, structs and macros in your program, and jump instantly to their declarations.

By the way, the browser is driven by information generated by compilers. We’ve documented the format of this as part of our plug-in compiler API, so anyone who makes a drop-in compiler can support our browser.

Dave: How will nested projects work? Can you give us an example?

Berardino: Nested projects will allow users to encapsulate their files into distinct subprojects that are automatically tracked and updated, so that when the user issues a make from the topmost project, the build system will check to see if any of the subprojects need updating and will build those first, updating any new dependencies as they are created. This becomes more and more important in today’s world of component software, where an application is made up of many separate plug-ins. The CodeWarrior IDE is a good example of this. Right now we have over 50 projects that are used to generate just the Macintosh-specific tools. Currently, we use AppleScripts to automate this build. With nested projects, we could have one master project that had as its subprojects all the tool projects, which in turn could have subprojects which generate any libraries that the tools need. With a single make issued at the top level, we would build all 30 or so output files without any further user interaction.

Dave: Tell me about “multiple target” support. Will I be able to choose between 68K, PPC, or fat? Will I be able to selectively bind source files to specific targets?

Berardino: Multiple targets is a feature that many Macintosh users have been asking for. Today, building a MacOS application involves generating two distinct applications from the same source base, one for 68K users and one for PPC users, and then merging them together into a final binary. Currently the only way to support this is through the use of two distinct projects, or to switch the target from 68K to PPC, which will strip out the object code you just finished compiling. What we plan to do is to have multiple targets with persistence, where you can have many different targets, such as 68K debugging, 68K release, PPC optimized, etc. When you switch to a different target you don’t lose all your current compiled files. Switching back won’t force you to recompile all your sources again. We also plan to support binding of files to a specific target, which will allow users to have their 68K libraries ignored by the PPC target and vice versa, or have certain files only compiled for an x86 target and ignored by MacOS targets, which is useful for user interface-specific source code.

Dave: How will CodeManager be integrated into the IDE?

Berardino: We already support CKID resources in the editor. A future release will have the CKID state visible from the project window, and will provide all tools which are necessary for managing SourceSafe databases. These tools will allow users to track different versions of their source code without having to leave the IDE. We will also be providing a file/folder compare tool in the IDE, which will help users to determine what changed between releases.

Dave: Do you plan to support having multiple projects open at once? What about supporting threads in the IDE?

Berardino: Having multiple projects open at once is very useful with an IDE that supports subprojects, because it allows users to work in two projects at once. Full support for threads will allow users to be compiling in one project while simultaneously editing a file in another project. With the coming of Copland and its preemptive threads, users will see less of a performance impact from using threads than exists with today’s cooperative threads. We are very excited by the performance that Copland can bring to MacOS with its microkernel architecture and fully native file system. Development tools are typically I/O-bound. A typical compile/link cycle can spend 40-60% of its time doing file I/O, so any improvements to the file system will translate directly into increased compiler/linker speed. Having a fully preemptive microkernel will allow us to add features that are impossible with the current MacOS architecture.

Dave: How will the browser change? Will the level of integration between the browser and the rest of the environment change?

Dan: Over time, we’re planning to extend the browser in a number of ways. The goals are to simplify the task of programming and to create more powerful tools for analyzing large, complex programs.

One important area is to automate some of the routine aspects of object-oriented programming. So, you’ll be able to create new classes and members and be spared the hassle of creating new header and source files and filling in all the boilerplate code. And the browser will handle keeping member function declarations and bodies in sync.

Many users have asked for a graphical view of the class hierarchy, so that’s something we plan to address. Another area is to allow browsing of dynamic as well as static relationships in programs. We took a browser-oriented approach with the user interface of the Metrowerks debugger. For example, you can browse through lists of local variables, global variables, types and processes. We’ll extend this by adding support for browsing object instances and by supporting object-oriented breakpoints. The latter allows you to stop a program when any method of a particular object instance is entered, or when any method of a particular class is entered. When you are debugging an object-oriented program you’re often thinking in terms of classes and instances, so the environment should let you work that way.

Dave: What kind of plug-ins will be supported? Why would someone want to write their own plug-in?

Berardino: Almost any type of plug-in can be written, but the one major limitation in today’s CodeWarrior make system is that we can’t easily support one plug-in’s output being fed to another plug-in. The new build system we’re planning will allow arbitrary chaining of plug-ins, so users can more easily support compilers (such as yacc) which generate C source files from their input files, which could then be chained to the C/C++ compiler, which would generate the final output file. A post-link phase is also planned, which would allow users to write custom plug-ins that could take the final application and do post-link processing on this. Good examples of possible post-linkers are: a tool that would merge PEF containers; a tool which would create a fat application from two input applications; or perhaps a tool that performed optimizations on the final generated binary.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Dropbox 193.4.5594 - Cloud backup and sy...
Dropbox is a file hosting service that provides cloud storage, file synchronization, personal cloud, and client software. It is a modern workspace that allows you to get to all of your files, manage... Read more
Google Chrome 122.0.6261.57 - Modern and...
Google Chrome is a Web browser by Google, created to be a modern platform for Web pages and applications. It utilizes very fast loading of Web pages and has a V8 engine, which is a custom built... Read more
Skype 8.113.0.210 - Voice-over-internet...
Skype is a telecommunications app that provides HD video calls, instant messaging, calling to any phone number or landline, and Skype for Business for productive cooperation on the projects. This... Read more
Tor Browser 13.0.10 - Anonymize Web brow...
Using Tor Browser you can protect yourself against tracking, surveillance, and censorship. Tor was originally designed, implemented, and deployed as a third-generation onion-routing project of the U.... Read more
Deeper 3.0.4 - Enable hidden features in...
Deeper is a personalization utility for macOS which allows you to enable and disable the hidden functions of the Finder, Dock, QuickTime, Safari, iTunes, login window, Spotlight, and many of Apple's... Read more
OnyX 4.5.5 - Maintenance and optimizatio...
OnyX is a multifunction utility that you can use to verify the startup disk and the structure of its system files, to run miscellaneous maintenance and cleaning tasks, to configure parameters in the... Read more

Latest Forum Discussions

See All

Zenless Zone Zero opens entries for its...
miHoYo, aka HoYoverse, has become such a big name in mobile gaming that it's hard to believe that arguably their flagship title, Genshin Impact, is only three and a half years old. Now, they continue the road to the next title in their world, with... | Read more »
Live, Playdate, Live! – The TouchArcade...
In this week’s episode of The TouchArcade Show we kick things off by talking about all the games I splurged on during the recent Playdate Catalog one-year anniversary sale, including the new Lucas Pope jam Mars After Midnight. We haven’t played any... | Read more »
TouchArcade Game of the Week: ‘Vroomies’
So here’s a thing: Vroomies from developer Alex Taber aka Unordered Games is the Game of the Week! Except… Vroomies came out an entire month ago. It wasn’t on my radar until this week, which is why I included it in our weekly new games round-up, but... | Read more »
SwitchArcade Round-Up: ‘MLB The Show 24’...
Hello gentle readers, and welcome to the SwitchArcade Round-Up for March 15th, 2024. We’re closing out the week with a bunch of new games, with Sony’s baseball franchise MLB The Show up to bat yet again. There are several other interesting games to... | Read more »
Steam Deck Weekly: WWE 2K24 and Summerho...
Welcome to this week’s edition of the Steam Deck Weekly. The busy season has begun with games we’ve been looking forward to playing including Dragon’s Dogma 2, Horizon Forbidden West Complete Edition, and also console exclusives like Rise of the... | Read more »
Steam Spring Sale 2024 – The 10 Best Ste...
The Steam Spring Sale 2024 began last night, and while it isn’t as big of a deal as say the Steam Winter Sale, you may as well take advantage of it to save money on some games you were planning to buy. I obviously recommend checking out your own... | Read more »
New ‘SaGa Emerald Beyond’ Gameplay Showc...
Last month, Square Enix posted a Let’s Play video featuring SaGa Localization Director Neil Broadley who showcased the worlds, companions, and more from the upcoming and highly-anticipated RPG SaGa Emerald Beyond. | Read more »
Choose Your Side in the Latest ‘Marvel S...
Last month, Marvel Snap (Free) held its very first “imbalance" event in honor of Valentine’s Day. For a limited time, certain well-known couples were given special boosts when conditions were right. It must have gone over well, because we’ve got a... | Read more »
Warframe welcomes the arrival of a new s...
As a Warframe player one of the best things about it launching on iOS, despite it being arguably the best way to play the game if you have a controller, is that I can now be paid to talk about it. To whit, we are gearing up to receive the first... | Read more »
Apple Arcade Weekly Round-Up: Updates an...
Following the new releases earlier in the month and April 2024’s games being revealed by Apple, this week has seen some notable game updates and events go live for Apple Arcade. What The Golf? has an April Fool’s Day celebration event going live “... | Read more »

Price Scanner via MacPrices.net

Apple Education is offering $100 discounts on...
If you’re a student, teacher, or staff member at any educational institution, you can use your .edu email address when ordering at Apple Education to take $100 off the price of a new M3 MacBook Air.... Read more
Apple Watch Ultra 2 with Blood Oxygen feature...
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... Read more
New promo at Sams Club: Apple HomePods for $2...
Sams Club has Apple HomePods on sale for $259 through March 31, 2024. Their price is $40 off Apple’s MSRP, and both Space Gray and White colors are available. Sale price is for online orders only, in... Read more
Get Apple’s 2nd generation Apple Pencil for $...
Apple’s Pencil (2nd generation) works with the 12″ iPad Pro (3rd, 4th, 5th, and 6th generation), 11″ iPad Pro (1st, 2nd, 3rd, and 4th generation), iPad Air (4th and 5th generation), and iPad mini (... Read more
10th generation Apple iPads on sale for $100...
Best Buy has Apple’s 10th-generation WiFi iPads back on sale for $100 off MSRP on their online store, starting at only $349. With the discount, Best Buy’s prices are the lowest currently available... Read more
iPad Airs on sale again starting at $449 on B...
Best Buy has 10.9″ M1 WiFi iPad Airs on record-low sale prices again for $150 off Apple’s MSRP, starting at $449. Sale prices for online orders only, in-store price may vary. Order online, and choose... Read more
Best Buy is blowing out clearance 13-inch M1...
Best Buy is blowing out clearance Apple 13″ M1 MacBook Airs this weekend for only $649.99, or $350 off Apple’s original MSRP. Sale prices for online orders only, in-store prices may vary. Order... Read more
Low price alert! You can now get a 13-inch M1...
Walmart has, for the first time, begun offering new Apple MacBooks for sale on their online store, albeit clearance previous-generation models. They now have the 13″ M1 MacBook Air (8GB RAM, 256GB... Read more
Best Apple MacBook deal this weekend: Get the...
Apple has 13″ M2 MacBook Airs available for only $849 today in their Certified Refurbished store. These are the cheapest M2-powered MacBooks for sale at Apple. Apple’s one-year warranty is included,... Read more
New 15-inch M3 MacBook Air (Midnight) on sale...
Amazon has the new 15″ M3 MacBook Air (8GB RAM/256GB SSD/Midnight) in stock and on sale today for $1249.99 including free shipping. Their price is $50 off MSRP, and it’s the lowest price currently... Read more

Jobs Board

Early Preschool Teacher - Glenda Drive/ *Appl...
Early Preschool Teacher - Glenda Drive/ Apple ValleyTeacher Share by Email Share on LinkedIn Share on Twitter Read more
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
Relationship Banker *Apple* Valley Main - W...
…Alcohol Policy to learn more. **Company:** WELLS FARGO BANK **Req Number:** R-350696 **Updated:** Mon Mar 11 00:00:00 UTC 2024 **Location:** APPLE VALLEY,California Read more
Medical Assistant - Surgical Oncology- *Apple...
Medical Assistant - Surgical Oncology- Apple Hill WellSpan Medical Group, York, PA | Nursing | Nursing Support | FTE: 1 | Regular | Tracking Code: 200555 Apply Now Read more
Early Preschool Teacher - Glenda Drive/ *Appl...
Early Preschool Teacher - Glenda Drive/ Apple ValleyTeacher Share by Email Share on LinkedIn Share on Twitter Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.