I want to get an estimate of how much code and static data is used by my C ++ program?
Is there a way to find out by looking at executable or object files? Or something I can do at runtime?
Will otool help?
.
$ size python __TEXT __DATA __OBJC others dec hex 860160 159744 0 2453504 3473408 350000
, otool . , "otool -s {segment} {section}" . , __DATA __TEXT . , : "otool -h"?
otool -s __DATA __data MyApp.bundle/Contents/MacOS/MyApp otool -s __TEXT __text MyApp.bundle/Contents/MacOS/MyApp
, Apple , : Apple mach-o
Source: https://habr.com/ru/post/1696597/More articles:.Net - Обнаружение установки внешнего вида (классический или XP?) - vb.netProblem using JRun to host Java servlets - javacustom dll command in managed code - installerDOS filename is escaped for use with * nix commands - scriptingMinimalistic database administration - databaseChanging the default file structure in a Java Struts application - javaUsing Office for software document conversion? - ms-officehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1696600/desktop-search-utility-for-pdfchm-and-djvu-files&usg=ALkJrhjRU-mU5ATuE2D8fFR9PsDzV9or-Qhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1696601/techniques-to-detect-polymorphic-and-metamorphic-viruses&usg=ALkJrhhWDzXyADup-73SigKlkNdCFuHOQAGet a list of current windows and give one of them focus, in .Net - windowsAll Articles