code-size Questions
6
Solved
I am looking for a tool to simplify analysing a linker map file for a large C++ project (VC6).
During maintenance, the binaries grow steadily and I want to figure out where it comes from. I suspect...
7
Solved
I was looking at the different instructions in assembly and I am confused on how the lengths of different operands and opcodes are decided upon.
Is it something you ought to know from experience, ...
Breana asked 31/12, 2010 at 3:33
4
Solved
I am developing a C++ for ARM using GCC. I have ran into an issue where, I no optimizations are enabled, I am unable to create a binary (ELF) for my code because it will not fit in the available sp...
Turnspit asked 27/4, 2022 at 14:31
3
/* The following codes are compiled into library(test.a) */
typedef struct {
short x[5];
} weight_t;
typedef struct {
weight_t wgt;
char *ptr;
} tbl_t;
/* huge static array and 70% of entries ...
Peeling asked 20/4, 2022 at 3:27
1
/* The following codes are compiled into library(test.a) */
typedef struct {
short x[5];
} weight_t;
typedef struct {
weight_t wgt;
char *ptr;
} myarray_t;
/* huge static array and 70% o...
Chelsae asked 20/4, 2022 at 7:57
17
Solved
I was reading this question because I'm trying to find the size of a function in a C++ program, It is hinted at that there may be a way that is platform specific. My targeted platform is windows
T...
14
Solved
Is there any maximum size for code in Java? I wrote a function with more than 10,000 lines. Actually, each line assigns a value to an array variable.
arts_bag[10792]="newyorkartworld";
arts_bag[1...
Pinwheel asked 9/3, 2010 at 9:33
5
When I watch demoscene videos on youtube the author's often boast of how their filesizes are 64kb or less, some as few as just 4kb. When I compile even a very basic program in C++ the executable is...
2
Solved
What would be the shortest Intel x86-64 opcode for setting rax to 1?
I tried xor rax,rax and inc al (in NASM syntax); which gives the 5-byte opcode 48 31 c0 fe c0. Would it be possible to achieve ...
Piglet asked 20/11, 2015 at 11:25
2
Solved
From Effective C++ by Scott Meyers:
template<typename T, std::size_t n>
class SquareMatrix: private SquareMatrixBase<T> {
public:
SquareMatrix( )
: SquareMatrixBase<T>(n, 0)...
1
I've read quite a few posts about the use of static inline and inline while defining functions in header files for access across multiple translation units. It seems like inline is the right way to...
8
Solved
I compared the languages at the language shootout game by their code size only. Here is a summary of what I got (shortest first, grouped by similar score).
Python, Ruby, JavaScript, Perl, Lua, PH...
Eiderdown asked 26/8, 2010 at 21:39
1
Why doesn't cabal install use the flag --enable-shared by default? I've notice that trivial programs when compiled without this flag, get huge in file size. Is there a connection? Is this a design ...
Cash asked 21/10, 2011 at 19:56
11
Solved
I have a huge number of functions totaling around 2.8 GB of object code (unfortunately there's no way around, scientific computing ...)
When I try to link them, I get (expected) relocation truncate...
Overbid asked 9/6, 2011 at 17:26
2
Solved
My iPhone app is getting ready to go to production and we like to cram in as much data as possible. When I poke around the generated .app file for my application I see a file named <executable n...
Realize asked 14/5, 2011 at 0:4
2
Solved
This question was asked here before, but none of the answers really tried to answer the actual question asked, so I'm asking it in a different way. Is loading a single class of 20,000 lines with 10...
Hungnam asked 26/12, 2010 at 19:52
9
Solved
Many people have argued about function size. They say that functions in general should be pretty short. Opinions vary from something like 15 lines to "about one screen", which today is probably abo...
Vacla asked 12/4, 2010 at 13:20
3
Solved
I have a C++ library that generates much larger code that I would really expect for what it is doing. From less than 50K lines of source I get shared objects that are almost 4 MB and static archive...
1
© 2022 - 2024 — McMap. All rights reserved.