Older versions of the XL C/C++ Evaluation for AIX 5.3


 
Thread Tools Search this Thread
Operating Systems AIX Older versions of the XL C/C++ Evaluation for AIX 5.3
# 8  
Old 02-08-2019
bakunin,


I have already tried the GCC version from Michael Perzls page to compile a software that is not avaiable as a RPM (Hercules Mainframe Emulator). Even newer GCC version have the same problem with inline assembler code like this:


Code:
1:  lwarx   25,0,31 
    cmpw    0,25,30 
    bne 2f 
    stwcx.  0,0,31 
    bne-    1b 
    sync 
 2:

I remember, that XL C/C++ did not have this problem.


I also had to change a lot of other code to get a (almost) usable running version of Hercules.
# 9  
Old 02-08-2019
Quote:
Originally Posted by eh2scqw
I have already tried the GCC version from Michael Perzls page to compile a software that is not avaiable as a RPM (Hercules Mainframe Emulator). Even newer GCC version have the same problem with inline assembler code like this:


Code:
1:  lwarx   25,0,31 
    cmpw    0,25,30 
    bne 2f 
    stwcx.  0,0,31 
    bne-    1b 
    sync 
 2:

I remember, that XL C/C++ did not have this problem.
I also had to change a lot of other code to get a (almost) usable running version of Hercules.
I am well aware that GCC has its shortcomings with AIX. i suggested Michael Perzls (and Michael Felts) page because i know for a fact both of them use XlC (not GCC) for compilation. It might have been that Michael Perzl had already compiled (and packaged) the software you were looking for so you could have tried it even if you don't have a XlC yourself.

In general i would not use any software compiled with GCC under AIX for any productive system (and probably not even test systems). The code quality - as you said already, especially when it comes to inline assembler - is terrible.

Another problem is that memory management in AIX is unlike any other OS i know and some programs which behave well under Linux may become memory sinks in AIX when compiled with GCC for a reason i do not claim to understand fully. But then i am so far removed from software development nowadays that this may be understandable. The days when i developed software instead of systems administration are 25 years past.

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Evaluation of test command

Could somebody please explain to me why and how the highlighted line(s) (?) of code puts the "test" evaluation into "result" and then to $enable_static ? Or does not ? I did comment out the original code and changed it to what I feel is less cryptic , but the "result" is still wrong =... (3 Replies)
Discussion started by: anne
3 Replies

2. Shell Programming and Scripting

AIX: Find a process older than 15days

Hi All, My application has specific processes when the developers start using respective GUI . I would like to find related process on server side that is older than 15 days for my application. I am using AIX 6.0. Could you please help with the command on how to find the older process? ... (5 Replies)
Discussion started by: chandu123
5 Replies

3. UNIX for Dummies Questions & Answers

cp command evaluation

Hi all! I'm writting one script to copy a file in various folders, but there are 2 things to validate. First that the folder where i'll be cpying exists, and second that i have permissions to copy the file in it. so far i have found the way to validate the folder exists, but when trying to... (6 Replies)
Discussion started by: feliperivera
6 Replies

4. AIX

How do i delete files older than 15 days in AIX?

Hi i have tried searching and googling, but cant quite get there I need to delete all files in a directory that are older than 15 days here is what i have tried find /path/to/files* -mtime +15 -exec del {} \;the first section works find /path/to/files* -mtime +15but the del command dosent... (4 Replies)
Discussion started by: bluesteel
4 Replies

5. AIX

Disabling an ASCI terminal in AIX versions 3 and 4

Hi, I tried to do some research on this subject, but got nothing conclusive. I have the following need: I have different servers with AIX versions 3.2.5 through 4.3.2. Some of them have two ASCI terminals connected. I have a shell script that is executed by a user on the main console... (2 Replies)
Discussion started by: andrei_r20
2 Replies

6. AIX

apache/tomcat compatibility with AIX versions

Hello, Where can i find the information about the compatibility versions of tomcat with AIX? for example, AIX 5.2 supported tomcat versions?? (1 Reply)
Discussion started by: balareddy
1 Replies

7. Shell Programming and Scripting

Script to delete older versions of unique files

I have directory where new sub directories and files being created every few minutes. The directories are like abc_date, def_date, ghi_date. I am looking to keep the latest 2 unique directories and delete everything else. Here is what I have so far This gives me unique names excluding the... (5 Replies)
Discussion started by: zzstore
5 Replies

8. UNIX for Dummies Questions & Answers

Versions of HP-UX or AIX

Can I install a HP-UX or IBM AIX in my home pc?. It is a Intel Pentium 4 of 64 bits. Is there any version for me?. (5 Replies)
Discussion started by: kurt1978
5 Replies

9. Solaris

Solaris 10 verse older versions

So if everything in Solaris 10 is dynamically linked then I have a question. If /sbin/sh in Solaris 9 and lower are statically linked and I lose my /usr libraries the system is still recoverable cause I can use root. If /sbin/sh in Solaris 10 is dynamically linked and I lose my /usr libraries... (1 Reply)
Discussion started by: x96riley3
1 Replies
Login or Register to Ask a Question