Sponsored Content
Full Discussion: .h and .a files
Top Forums Programming .h and .a files Post 302577982 by uunniixx on Wednesday 30th of November 2011 11:55:04 AM
Old 11-30-2011
.h and .a files

We have a code where we have a lot of constants declaration within a .h file - this .h files gets included to multiples .cpp files which is used to create multiples .a library - now these .a files are linked to one executable. For the output and profiler I understand that this way it results the constants (declared in .h file) to be loaded into memory over and over again when different library method are referenced in code. This leads to a lot of un-necessary execution time.

Is there any way (apart from writing the constants in a .so file) we can make use? Is my assumption correct related why the constants are getting loaded multiple times due to reference of different library?
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Merge files of differrent size with one field common in both files using awk

hi, i am facing a problem in merging two files using awk, the problem is as stated below, file1: A|B|C|D|E|F|G|H|I|1 M|N|O|P|Q|R|S|T|U|2 AA|BB|CC|DD|EE|FF|GG|HH|II|1 .... .... .... file2 : 1|Mn|op|qr (2 Replies)
Discussion started by: shashi1982
2 Replies

2. Shell Programming and Scripting

How to retrieve all the linked script files/ctl files/sql files?

Hi I am going to migrate our datawarehouse system from HP Tru 64 Unix to the Red Hat Linux. Inside the box, it is running around 40 cron jobs; inside each cron job, it is calling other shell script files, and the shell script files may again call other shell script files or ctl files(for... (1 Reply)
Discussion started by: franksubramania
1 Replies

3. Shell Programming and Scripting

How to extract data from indexed files (ISAM files) maintained in an unix server.

Hi, Could someone please assist on a quick way of How to extract data from indexed files (ISAM files) maintained in an UNIX(AIX) server.The file data needs to be extracted in flat text file or CSV or excel format . Usually we have programs in microfocus COBOL to extract data, but would like... (2 Replies)
Discussion started by: devina
2 Replies

4. UNIX for Dummies Questions & Answers

write a program in c in unix that display the files(includ sub-direc and files within) in a sorted

the sorting is based on name of file, file size modification time stamps o f file it should dislay the output in the following format "." and ".." enteries should be ignored please give some idea how to do it (1 Reply)
Discussion started by: pappu kumar jha
1 Replies

5. Shell Programming and Scripting

need a shell script to extract the files from source file and check whether those files existonserve

Hi, I am new to shell scripting.Please help me on this.I am using solaris 10 OS and shell i am using is # echo $0 -sh My requirement is i have source file say makefile.I need to extract files with extensions (.c |.cxx |.h |.hxx |.sc) from the makefile.after doing so i need to check whether... (13 Replies)
Discussion started by: muraliinfy04
13 Replies

6. Shell Programming and Scripting

How to create zip/gz/tar files for if the files are older than particular days in UNIX or Linux?

I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also? I found one command which is to create gz file for the... (4 Replies)
Discussion started by: Mallikgm
4 Replies

7. Shell Programming and Scripting

Append string to all the files inside a directory excluding subdirectories and .zip files

Hii, Could someone help me to append string to the starting of all the filenames inside a directory but it should exclude .zip files and subdirectories. Eg. file1: test1.log file2: test2.log file3 test.zip After running the script file1: string_test1.log file2: string_test2.log file3:... (4 Replies)
Discussion started by: Ravi Kishore
4 Replies

8. Shell Programming and Scripting

Shell script for field wise record count for different Files .csv files

Hi, Very good wishes to all! Please help to provide the shell script for generating the record counts in filed wise from the .csv file My question: Source file: Field1 Field2 Field3 abc 12f sLm 1234 hjd 12d Hyd 34 Chn My target file should generate the .csv file with the... (14 Replies)
Discussion started by: Kirands
14 Replies

9. UNIX for Beginners Questions & Answers

Automate splitting of files , scp files as each split completes and combine files on target server

i use the split command to split a one terabyte backup file into 10 chunks of 100 GB each. The files are split one after the other. While the files is being split, I will like to scp the files one after the other as soon as the previous one completes, from server A to Server B. Then on server B ,... (2 Replies)
Discussion started by: malaika
2 Replies
CONSTANTS(5)							LAM FORTRAN LIBRARY						      CONSTANTS(5)

NAME
CONSTANTS - constants for LAM Fortran programming DESCRIPTION
The following table describes the values appropriate to various constants used in LAM. It also describes the meaning of the constants and lists the cpp(1) header files in which the constants can be found. To use these files, the Fortran source files will need to be passed through cpp(1) before they are given to the Fortran compiler. Some compiler drivers will run cpp(1) if the source file suffix is .F. In lieu of cpp(1), the constants can be copied to parameter statements in the Fortran source files. CONSTANT VALUE DESCRIPTION FILE Network Constants: LOCAL -2147483647 local node NET.h MAXNMSGLEN 8192 maximum length of one message packet NET.h NHDSIZE 8 maximum size in words of ndata NET.h argument NOTNODEID -2147483648 error occurred in IGNDID(2) NET.h NOTNODETYPE -2147483648 error occurred in IGRTP(2) NET.h Node Types: NTCAST 2 multicast definition NET.h NTWASTE 4 not fully used/wasted NET.h NTDISK 8 node with attached disk NET.h NTTUBE 16 node with attached video unit NET.h NTJONES 32 node is a neighbour NET.h NTBOOT 64 neighbour node to boot NET.h NTALL 127 matches any type NET.h Message Flags: NOBUF 16 turn off buffering NET.h NREEL 1024 multireel NET.h DRAWDATA 65536 ndata representation will not be NET.h changed DINT4DATA 131072 ndata holds 8 32-bit integer NET.h DFLT4DATA 262144 ndata holds 8 single precision reals NET.h DFLT8DATA 524288 ndata holds 4 double precision reals NET.h DRAWMSG 1048576 nmsg representation will not be NET.h changed DINT4MSG 2097152 nmsg holds integers NET.h DFLT4MSG 4194304 nmsg holds single precision reals NET.h DFLT8MSG 8388608 nmsg holds double precision reals NET.h Reserved Cast Identifiers: HOST2ALL -2147483646 multicast from origin to all nodes NET.h HOST2COMP -2147483642 multicast from origin to compute nodes NET.h File Flags: O_RDONLY 0 open for reading only FREQ.h O_WRONLY 1 open for writing only FREQ.h O_RDWR 2 open for reading and writing FREQ.h O_APPEND 8 append on each write FREQ.h O_CREAT 512 create file if it does not exist FREQ.h O_TRUNC 1024 truncate length to 0 FREQ.h O_EXCL 2048 error if create and file exists FREQ.h O_SYNC 8192 update file data and file status FREQ.h before writing O_LOCK 65536 lock file descriptor active FREQ.h O_REUSE 131072 reuse existing file descriptor FREQ.h O_1WAY 4194304 do not acknowledge writes FREQ.h Process Runtime Flags: RTF_WAIT 16 child sends a message to NET.h parent when it exits RTF_TRACE 256 enable process tracing NET.h LAM 7.1.4 July, 2007 CONSTANTS(5)
All times are GMT -4. The time now is 04:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy