08-31-2005
You cannot predict the size of an executable. Inlining often results in LARGER code blocks, not smaller. Note the word "often". Compilers do fun things when they optimize.
Compilers are not duty-bound to optimize just because you think they should.
If you use complex, tricky code compilers will often decide not to optimize.
HPUX C compilers do this - they back down optimization levels when presented with really convoluted code.
The only way I could imagine the size decreasing is because you invoke the inline function call in just one place in your code, or that some other optimization was turned off/on because of the inline function.
10 More Discussions You Might Find Interesting
1. Programming
At time of installation I have to open the resource. and i have to insert a string serial number in the exe.
please provide me code to edit the exe (in solaris) to insert a serial number which can be used by exe at run time. (6 Replies)
Discussion started by: ssahu
6 Replies
2. Programming
#include <iostream>
using namespace std;
class A
{
public:
int Getvalue() { return i;}
private:
int i;
};
int main()
{}
The above code compiles properly in g++ or in any other C++ compiler.
BUT, the variable 'i' is used (in 'return i' statement) before it is... (1 Reply)
Discussion started by: deepthi.s
1 Replies
3. Shell Programming and Scripting
Hi all,
I am using
echo "$EMAILMESSAGE" | mailx -s "$SUBJECT" -b $CC "$TO"
I am receiving the mail but seems to big in font size. Is there any option mailx to decrease the size of the mail generated.
Thanks, (1 Reply)
Discussion started by: shellscripter
1 Replies
4. Programming
Hi.
Problem: I have to parse the payload of a packet. The payload could be in Big Endian Format (network byte order) or little. That depends on a flag present in the header of the packet.
Solution: A horrible solution could be to check for that flag everytime I have to read a field in the... (11 Replies)
Discussion started by: emitrax
11 Replies
5. Shell Programming and Scripting
i have text file which contains number like 234565
i need a shell script or command which decrease number by 1 in text file.
pls (2 Replies)
Discussion started by: reyazan
2 Replies
6. AIX
Hi
I have found a problem on my AIX 5.1 server. day by day the paging size is increasing,what is the reason behind it and if percentage is at 100 what will happen. Oracle 9i is running on my server.
PAGING SPACE
size,mb 5632
% used 14.6
% free 85.3
How can i decrease the using... (6 Replies)
Discussion started by: dearsumon
6 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am using the below command to get the output in a file called "Logs.txt"
tail -f filename | egrep -i "cpu | hung " >> Logs.txt The problem is the Logs.txt file gets updated only after the buffer is 8Kb, but i want to update the file immediately and not wait for the buffer to get 8kb.
Is... (8 Replies)
Discussion started by: @bhi
8 Replies
8. Programming
Hi,
I have 5 files as below
$ ll sam*
-rw-rw-rw- 1 sam ugroup 0 Mar 21 06:06 sam3
-rw-rw-rw- 1 sam ugroup 0 Apr 3 22:41 sam2
-rw-rw-rw- 1 sam ugroup 17335 Apr 10 06:07 sam1
-rw-rw-rw- 1 sam ugroup 5 Apr 10 07:53 sam5
-rw-rw-rw- 1 sam ugroup 661 Apr 10 08:16 sam4
I want to list out... (4 Replies)
Discussion started by: sam05121988
4 Replies
9. Programming
Hello all
i have simple server running on linux redhat 6.1
it is build with c++
in the server i have huge std vector that holds pointers to cache objects
those cache objects holds allot of data from the DB
any way ...
in some point in time there is simple API that suppose to clean the... (2 Replies)
Discussion started by: umen
2 Replies
10. AIX
Hello,
I would like to reduce the size of filesystem online. We can do online for increase without any problem. So any risk can be occurred with the decrease? This is not an issue, just a discussion for decrease/shrink space with chfs command.
My AIX system is version 6.1 and the filesystem... (2 Replies)
Discussion started by: Phat
2 Replies
LEARN ABOUT DEBIAN
std::_temporary_buffer
std::_Temporary_buffer< _ForwardIterator, _Tp >(3cxx) std::_Temporary_buffer< _ForwardIterator, _Tp >(3cxx)
NAME
std::_Temporary_buffer< _ForwardIterator, _Tp > -
SYNOPSIS
Inherited by __gnu_cxx::temporary_buffer< _ForwardIterator, _Tp >.
Public Types
typedef pointer iterator
typedef value_type * pointer
typedef ptrdiff_t size_type
typedef _Tp value_type
Public Member Functions
_Temporary_buffer (_ForwardIterator __first, _ForwardIterator __last)
iterator begin ()
iterator end ()
size_type requested_size () const
size_type size () const
Protected Attributes
pointer _M_buffer
size_type _M_len
size_type _M_original_len
Detailed Description
template<typename _ForwardIterator, typename _Tp>class std::_Temporary_buffer< _ForwardIterator, _Tp >
This class is used in two places: stl_algo.h and ext/memory, where it is wrapped as the temporary_buffer class. See temporary_buffer docs
for more notes.
Definition at line 123 of file stl_tempbuf.h.
Constructor & Destructor Documentation
template<typename _ForwardIterator , typename _Tp > std::_Temporary_buffer< _ForwardIterator, _Tp >::_Temporary_buffer
(_ForwardIterator__first, _ForwardIterator__last)
Constructs a temporary buffer of a size somewhere between zero and the size of the given range.
Definition at line 246 of file stl_tempbuf.h.
References std::pair< _T1, _T2 >::first, std::get_temporary_buffer(), std::return_temporary_buffer(), and std::pair< _T1, _T2 >::second.
Member Function Documentation
template<typename _ForwardIterator, typename _Tp> iterator std::_Temporary_buffer< _ForwardIterator, _Tp >::begin () [inline]
As per Table mumble.
Definition at line 152 of file stl_tempbuf.h.
Referenced by std::inplace_merge(), std::stable_partition(), and std::stable_sort().
template<typename _ForwardIterator, typename _Tp> iterator std::_Temporary_buffer< _ForwardIterator, _Tp >::end () [inline]
As per Table mumble.
Definition at line 157 of file stl_tempbuf.h.
template<typename _ForwardIterator, typename _Tp> size_type std::_Temporary_buffer< _ForwardIterator, _Tp >::requested_size () const [inline]
Returns the size requested by the constructor; may be >size().
Definition at line 147 of file stl_tempbuf.h.
Referenced by std::stable_partition().
template<typename _ForwardIterator, typename _Tp> size_type std::_Temporary_buffer< _ForwardIterator, _Tp >::size () const [inline]
As per Table mumble.
Definition at line 142 of file stl_tempbuf.h.
Referenced by std::inplace_merge(), std::stable_partition(), and std::stable_sort().
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Tue Nov 27 2012 std::_Temporary_buffer< _ForwardIterator, _Tp >(3cxx)