- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with Label in Assembly language
Operating System - HP-UX
1753465
Members
4694
Online
108794
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
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
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
тАО12-05-2000 12:50 AM
тАО12-05-2000 12:50 AM
Problem with Label in Assembly language
I wrote a very long assembly code that is call by c procedure and go after to another c procedure. Inside, there is a lot of call to an internal label and after there is only one call to the external label.
When i make the project, i need to use directly in my makefile cc instead of aCC that's calling ansic cc who doesn't exist on my hp server. I must use ansic because the linker need an object file compiling with +z or +Z option; but my cc doesn't support this options...
To correct the problem, i change all call routine to a very, very,very long method to call that recalculates the space.
But one problem exist always: in my first method, i want to jump in my assembly code at an address+offset: the address is the start of a list of fixed routine length and the offset is a multiple of this routine. When i jump to the first label, it's ok, when i jump to another, the mecanism between my c procedure and my assembly code crash.
Anybody have an idea to correct this problem?
When i make the project, i need to use directly in my makefile cc instead of aCC that's calling ansic cc who doesn't exist on my hp server. I must use ansic because the linker need an object file compiling with +z or +Z option; but my cc doesn't support this options...
To correct the problem, i change all call routine to a very, very,very long method to call that recalculates the space.
But one problem exist always: in my first method, i want to jump in my assembly code at an address+offset: the address is the start of a list of fixed routine length and the offset is a multiple of this routine. When i jump to the first label, it's ok, when i jump to another, the mecanism between my c procedure and my assembly code crash.
Anybody have an idea to correct this problem?
- Tags:
- ASM
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2000 01:09 AM
тАО12-05-2000 01:09 AM
Re: Problem with Label in Assembly language
i have no solution for your current problem but to have an ansi cc compiler you could download and install gnu compiler
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-2.95.2/
http://hpux.cs.utah.edu/hppd/hpux/Gnu/binutils-2.9.1/
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-2.95.2/
http://hpux.cs.utah.edu/hppd/hpux/Gnu/binutils-2.9.1/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2000 02:04 AM
тАО12-06-2000 02:04 AM
Re: Problem with Label in Assembly language
It isn't very clear from your description what isn't working. You indicate that the mechanism between C procedure and your assembly code is crashing in some way. It may be that your assembly code is not correctly setting every register it needs to; particularly if shared shared-library calls are involved there are extra considerations. If you haven't already, it would be worth your looking at the "32-bit PA-RISC Run-Time Architecture" documents available at http://devresource.hp.com -> "document library" -> "architecture" (in the "references and manuals" section). In particular the "Conventions for Calling Procedures" may help, if that is what is failing.
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