- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: cc/aCC feature request (computed gotos)
Operating System - Linux
1752808
Members
6171
Online
108789
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2004 09:59 AM
07-07-2004 09:59 AM
cc/aCC feature request (computed gotos)
Hi everyone,
First, I should apologize for not knowing the correct place to lodge cc/aCC feature requests. If someone could fill me in on the right way of doing this, I'd really appreciate it.
Having said that, I'd like to ask that HP support support computed gotos ("labels as values") in cc and aCC, a language extension which some other C/C++ compilers (notably GCC) support. (See the page:
http://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html for more details about this)
This extension is great for people writing interpreter code where performance is important. It also has other uses, such as (sometimes) eliminating massive switch statements that can make code very verbose and a little difficult to read.
The reason I'm reluctant to use GCC is because I'm on Itanium, where GCC gives very poor performing code. I want to congratulate the HP compiler guys on the great job they're doing with their Itanium back-end. It would be truly amazing if the compiler can still emit multiway branches in the presence of computed gotos, not just switch statements!
Well, I hope that this extension will make it into HP's great compilers one day soon!
First, I should apologize for not knowing the correct place to lodge cc/aCC feature requests. If someone could fill me in on the right way of doing this, I'd really appreciate it.
Having said that, I'd like to ask that HP support support computed gotos ("labels as values") in cc and aCC, a language extension which some other C/C++ compilers (notably GCC) support. (See the page:
http://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html for more details about this)
This extension is great for people writing interpreter code where performance is important. It also has other uses, such as (sometimes) eliminating massive switch statements that can make code very verbose and a little difficult to read.
The reason I'm reluctant to use GCC is because I'm on Itanium, where GCC gives very poor performing code. I want to congratulate the HP compiler guys on the great job they're doing with their Itanium back-end. It would be truly amazing if the compiler can still emit multiway branches in the presence of computed gotos, not just switch statements!
Well, I hope that this extension will make it into HP's great compilers one day soon!
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 09:12 PM
03-08-2006 09:12 PM
Re: cc/aCC feature request (computed gotos)
If you want an enhancement, you need a support contract and you contact the Response Center.
I believe this is now there for the PA HPC compiler.
If you want performance, using switches is faster than assigned goto, at least on PA. And all of those labels/gotos would cause the optimizer to take a long time.
Assigned gotos may be in the next IPF release, possibly in June 2006. You will need to use -Agcc or -Ag++.
I believe this is now there for the PA HPC compiler.
If you want performance, using switches is faster than assigned goto, at least on PA. And all of those labels/gotos would cause the optimizer to take a long time.
Assigned gotos may be in the next IPF release, possibly in June 2006. You will need to use -Agcc or -Ag++.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP