Sponsored Content
Operating Systems HP-UX Program crashes with optimization level O2 Post 302131912 by Yuriy07 on Tuesday 14th of August 2007 09:52:21 AM
Old 08-14-2007
Quote:
Originally Posted by porter
Often optimizations are incompatible with debuggers because optimizers will re-organize variables on the stack for efficiency, um, basically optimizing the thing.

Optimizers are more aggressive and less forgiving of dodgy code.

Also, if you are using C++ libraries, have these been built with the same optimizations?


Use maximum warning and errors during compilation, for HPUX compilers I use "-Aa -D_HPUX_SOURCE +e +We".

Try GCC and see if that exposes anything, again use "-Wall -Werror".
Thank you, porter!

I tried -Aa option. The code won't compile, it complains about the inline statements we have in our code. Apparently, there's a reason why the -AA flag is used. All libraries are built with the same options.

It's weird to see that -g option is not compatible with -O (a typical optimization option).

The aCC man page says that +O2 optimization option is the same as +O1 optimization plus global optimization. What the "global optimization" means in this case? Are there any specific things I have to check in my code for that cause the crash with +O2 option, but not +O1?


Thank you in advance.
 

9 More Discussions You Might Find Interesting

1. Programming

AIX 5.3 64-bit program crashes with AIX 5.1

I have an AIX 64-bit program which uses following from AIX5.3 /usr/lib/libc.a(shr_64.o) /usr/lib/libpthread.a(shr_xpg5_64.o) /home/jeet_xp/export/power/usr/lib/libsarpc.a(shr.o) /unix /usr/lib/libcrypt.a(shr_64.o) /usr/lib/libc_r.a(shr_64.o) ... (3 Replies)
Discussion started by: jeet_xp
3 Replies

2. UNIX for Advanced & Expert Users

Which Base Level Filesets needed by a specific program?

hello... thats a great forum btw :) my problem is that I need a list of the Base Level Filesets (BLF) which are needed by a specific program. Is there any command/tool which shows me that? during the installation I can choose "Preview only" so that I can see what BLF´s are missing etc but... (4 Replies)
Discussion started by: cypher82
4 Replies

3. UNIX for Dummies Questions & Answers

Text book / online resource for learning to program at system/kernel level

Is there any book/resource that one can refer to, to be able to write programs at kernel/system level.. I'm looking for a programming book that could serve as a guide to write kernel codes / system level programming etc.. I have Tannenbaum's Design and Implementation. It addresses theoretical... (2 Replies)
Discussion started by: vishwamitra
2 Replies

4. Solaris

Difference between run level & init level

what are the major Difference Between run level & init level (2 Replies)
Discussion started by: rajaramrnb
2 Replies

5. Programming

C++ program crashes

Hi, Could anyone tell me the reason why the following program crashes? class A { int x; public: A() { cout << "from A()" << endl; } ~A() { cout << "from ~A()" << endl; } }; class B : public A { public: B() { cout << "from B()"... (2 Replies)
Discussion started by: royalibrahim
2 Replies

6. Programming

Program crashes on calling __libc_msgrcv()

Hi, I am a newbie to linux programming. I have implemented msgqueue in C. msgrcv() call at the client end is as below: msgrcv( msgqid, msgptr, msgsize, msgtype, 0 ); My program works fine when msgrcv () from /lib/libc.so.6 is called. However it crashes when __libc_msgrcv() is called. ... (3 Replies)
Discussion started by: praasanna
3 Replies

7. Programming

C++ program crashes

Hi, Can anyone tell me why the below program is crashing? and where exactly it is crashing. What is the corrective measure to be taken to make it work fine? #include <iostream> #include <cstring> using namespace std; class CString { char* m_data; public: CString() :... (6 Replies)
Discussion started by: royalibrahim
6 Replies

8. Red Hat

SSL certificate generation on OS level or application level

We have a RHEL 5.8 server at the production level and we have a Java application on this server. I know of the SSL certificate generation at the OS (RHEL) level but it is implemented on the Java application by our development team using the Java keytool. My doubt is that is the SSL generation can... (3 Replies)
Discussion started by: RHCE
3 Replies

9. UNIX and Linux Applications

Apcupsd crashes

I am trying to run apcupsd, but it will not retain contact the UPS root@meow:/home/ethan/UPS/gapcmon-0.8.9# /etc/init.d/apcupsd start Starting UPS power management: A copy of the daemon is still running. If you just stopped it, please wait about 5 seconds for it to shut down.... (0 Replies)
Discussion started by: Meow613
0 Replies
IASL(1) 						      General Commands Manual							   IASL(1)

NAME
iasl - ACPI Source Language compiler/decompiler SYNOPSIS
iasl [options] [input file] DESCRIPTION
This manual page documents briefly the iasl command. The option list is taken from the iasl interactive help. iasl is an ASL compiler and decompiler. OPTIONS
General Output -p <prefix> Specify filename prefix for all output files (including .aml) -vi Less verbose errors and warnings for use with IDEs -vo Enable optimization comments -vr Disable remarks -vs Disable signon AML Output Files -s<a|c> Create AML in assembler or C source file (*.asm or *.c) -i<a|c> Create assembler or C include file (*.inc or *.h) -t<a|c> Create AML in assembler or C hex table (*.hex) AML Code Generation -oa Disable all optimizations (compatibility mode) -of Disable constant folding -oi Disable integer optimization to Zero/One/Ones -on Disable named reference string optimization -r<Revision> Override table header Revision (1-255) Listings -l Create mixed listing file (ASL source and AML) (*.lst) -ln Create namespace file (*.nsp) -ls Create combined source file (expanded includes) (*.src) AML Disassembler -d [file] Disassemble AML to ASL source code file (*.dsl) -dc [file] Disassemble AML and immediately compile it (Obtain DSDT from current system if no input file) -e Generate External() statements for unresolved symbols -g Get ACPI tables and write to files (*.dat) Miscellaneous -a Verify source file is entirely ASCII text (0x00-0x7F) Help -h Additional help and compiler debug options -hc Display operators allowed in constant expressions -hr Display ACPI reserved method names AUTHOR
iasl was written by Robert Moore <robert.moore@intel.com>. This manual page was written by Mattia Dongili <malattia@debian.org>, for the Debian project (but may be used by others). October 14, 2005 IASL(1)
All times are GMT -4. The time now is 02:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy