code-size

MAP file analysis - where's my code size comes from?

被刻印的时光 ゝ 提交于 2019-11-29 12:49:54
问题 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 some overzealeous template expansion in a library shared between different DLL's, but jsut browsign the map file doesn't give good clues. Any suggestions? 回答1: This is a wonderful compiler generated map file analysis/explorer/viewer tool. Check if you can explore gcc generated map file. amap : A

Getting The Size of a C++ Function

纵然是瞬间 提交于 2019-11-27 23:29:32
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 The method I currently have in my head is the following: 1. Obtain a pointer to the function 2. Increment the Pointer (& counter) until I reach the machine code value for ret 3. The counter will be the size of the function? Edit1: To clarify what I mean by 'size' I mean the number of bytes (machine code) that make up the function. Edit2: There have been a few comments asking why or what do I plan to do

Getting The Size of a C++ Function

﹥>﹥吖頭↗ 提交于 2019-11-27 04:40:46
问题 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 The method I currently have in my head is the following: 1. Obtain a pointer to the function 2. Increment the Pointer (& counter) until I reach the machine code value for ret 3. The counter will be the size of the function? Edit1: To clarify what I mean by 'size' I mean the number of bytes (machine

“Code too large” compilation error in Java

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 00:26:10
问题 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[10793]=\"leningradschool\"; arts_bag[10794]=\"mailart\"; arts_bag[10795]=\"artspan\"; arts_bag[10796]=\"watercolor\"; arts_bag[10797]=\"sculptures\"; arts_bag[10798]=\"stonesculpture\"; And while compiling, I get this error: code too large How do I overcome this? 回答1: A single method in a Java class