- spyin on c++ app hiden startup - 1 Update
- Testing exception safety - 1 Update
- Testing exception safety - 1 Update
- "Bjarne Stroustrup announces C++ Core Guidelines" - 1 Update
- October C++ Meetings - 2 Updates
Prroffessorr Fir Kenobi <profesor.fir@gmail.com>: Oct 04 02:54AM -0700 If I compile small (like empty) win32 c++ WinMain app to exe and disasembly it i see some stubs of code there, containing such functions (i will post it as it my be helpfull and i would like to understand it most fully as possible) 00401000 <___mingw_CRTStartup>: 00401110 <__gnu_exception_handler@4>: 00401280 <_mainCRTStartup>: 004012a0 <_WinMainCRTStartup>: 004012c0 <_atexit>: 004012d0 <__onexit>: 004012e0 <___gcc_register_frame>: 0040132c <___gcc_deregister_frame>: 00401334 <_WinMain@16>: 00401340 <___dyn_tls_dtor@12>: 00401390 <___dyn_tls_init@12>: 00401420 <___tlregdtor>: 00401430 <___cpu_features_init>: 00401510 <__fpreset>: 00401520 <___report_error>: 00401580 <___write_memory.part.0>: 00401690 <__pei386_runtime_relocator>: 00401870 <___do_global_dtors>: 004018a0 <___do_global_ctors>: 004018f0 <___main>: 00401910 <___mingwthr_run_key_dtors.part.0>: 00401970 <____w64_mingwthr_add_key_dtor>: 00401a00 <____w64_mingwthr_remove_key_dtor>: 00401a90 <___mingw_TLScallback>: 00401b30 <___getmainargs>: 00401b38 <__setmode>: 00401b40 <___p__fmode>: 00401b48 <___p__environ>: 00401b50 <__cexit>: 00401b58 <_signal>: 00401b60 <_fwrite>: 00401b68 <_vfprintf>: 00401b70 <_abort>: 00401b78 <_memcpy>: 00401b80 <_calloc>: 00401b88 <_free>: 00401b90 <_SetUnhandledExceptionFilter@4>: 00401b98 <_ExitProcess@4>: 00401ba0 <_GetModuleHandleA@4>: 00401ba8 <_GetProcAddress@8>: 00401bb0 <_VirtualQuery@12>: 00401bb8 <_VirtualProtect@16>: 00401bc0 <_GetCommandLineA@0>: 00401bc8 <_GetStartupInfoA@4>: 00401bd0 <_EnterCriticalSection@4>: 00401bd8 <_TlsGetValue@4>: 00401be0 <_GetLastError@0>: 00401be8 <_LeaveCriticalSection@4>: 00401bf0 <_DeleteCriticalSection@4>: 00401bf8 <_InitializeCriticalSection@4>: 00401c00 <_main>: 00401ce0 <_register_frame_ctor>: 00401cfc <__CTOR_LIST__>: 00401d00 <.ctors.65535>: 00401d08 <__DTOR_LIST__>: I found thet probably source related to this stub is maybe here http://sourceforge.net/p/mingw/mingw-org-wsl/ci/21762bb4a1bd0c88c38eead03f59e8d994349e83/tree/src/libcrt/crt/ (could someone acknowledge that?) But still i cannot track the entry point and full order of operations and see clearly what is injected and esp the prder of callings, could someone help in understanding that writing a couple of words of short comment like tutorial explaining what is called where and so on? tnx |
Ian Collins <ian-news@hotmail.com>: Oct 04 10:08PM +1300 Udo Steinbach wrote: > calls") My variant is a macro which throws in DEBUG in combination > with a class calling in some loops a test function until nothing is > thrown and a list of allocated resources. I use a framework that generates mock functions from an interface description (basically a function prototype described in XML) so the cost is low compared to the benefits. -- Ian Collins |
Udo Steinbach <trashcan@udoline.de>: Oct 04 10:09AM +0200 > It could be very costly to create mockups of lower level operations. What does Ian say on this? ("I mock everything the code under test calls") My variant is a macro which throws in DEBUG in combination with a class calling in some loops a test function until nothing is thrown and a list of allocated resources. -- Fahrradverkehr in Deutschland: http://radwege.udoline.de/ GPG: A245 F153 0636 6E34 E2F3 E1EB 817A B14D 3E7E 482E |
Chris Vine <chris@cvine--nospam--.freeserve.co.uk>: Oct 04 08:03AM +0100 On 3 Oct 2015 21:27:19 GMT > Oh. I was talking about non-library code only. I was going to state > that above, but changed my mind because I thought it was obvious. > After all, most code is not intended as reuable libraries. I was responding to your comment that "I read the header file to see the API". I do not do so: I look at the documentation to see the API. If your point does not concern libraries (or other similar code intended to be used by other modules which ought to be documented), then the interest group for the hypothetical header file containing class definitions comprises the authors and maintainers of the code. In order for the maintainer to maintain (and so understand) any given class method, she needs to look at the data that the class is operating on. For inline and/or template methods in particular, that in my view is something best done by declaring the class data before declaring the public methods. I see zero advantage in declaring the public methods in advance of the data, as proposed in the style guide. Chris |
woodbrian77@gmail.com: Oct 03 06:39PM -0700 https://isocpp.org/blog/2015/10/cpp-user-group-meetings-in-october 5.10 Dublin - C/C++ Meeting with 3 Talks 7.10 Saint Louis - Intro to Unity\, Scott Meyers "gotchas"\, Group exercise 7.10 Washington, DC - Q & A / Info Sharing 13.10 New York - Joint October C++ Meetup with Empire Hacking 14.10 Utah - Regular Monthly Meeting 14.10 San Francisco/ Bay area - Presentation and Q&A 19.10 Austin - North Austin Monthly C/C++ Pub Social 20.10 Berlin - Thomas Schaub - Introduction to SIMD 20.10 Hamburg - JavaX (really?) 21.10 Washington, DC - Q & A / Info Sharing 21.10 Bristol - Edward Nutting 21.10 Düsseldorf - CppCon trip report & Multimethods 21.10 Arhus - Lego & C++ 24.10 Italy - Clang, Xamarin, MS Bridge, Google V8 28.10 San Francisco - Workshop and Discussion Group 29.10 Bremen - C++ User Group Please pray for the Hamburg group to quickly bounce back to a more interesting topic. If others are interested in a C++ meeting in the St. Paul, Minnesota area, please let me know. By the grace of G-d, I'm able to provide a meeting area in a conference room in the office building where Ebenezer Enterprises is, and I would be happy to give a talk or two. Brian Ebenezer Enterprises - "Free at last, free at last. Thank G-d Almighty we are free at last." Martin Luther King Jr. http://webEbenezer.net |
woodbrian77@gmail.com: Oct 03 06:53PM -0700 > 24.10 Italy - Clang, Xamarin, MS Bridge, Google V8 > 28.10 San Francisco - Workshop and Discussion Group > 29.10 Bremen - C++ User Group I cleaned that up a little further 5 Dublin - C/C++ Meeting with 3 Talks 7 Saint Louis - Intro to Unity\, Scott Meyers "gotchas"\, Group exercise 7 Washington, DC - Q & A / Info Sharing 13 New York - Joint October C++ Meetup with Empire Hacking 14 Utah - Regular Monthly Meeting 14 San Francisco - Presentation and Q&A 19 Austin - North Austin Monthly C/C++ Pub Social 20 Berlin - Thomas Schaub - Introduction to SIMD 20 Hamburg - JavaX (really?) 21 Washington, DC - Q & A / Info Sharing 21 Bristol - Edward Nutting 21 Düsseldorf - CppCon trip report & Multimethods 21 Arhus - Lego & C++ 24 Italy - Clang, Xamarin, MS Bridge, Google V8 28 San Francisco - Workshop and Discussion Group 29 Bremen - C++ User Group Brian Ebenezer Enterprises - "The L-RD is my strength and my song; He has become my salvation." Psalms 118:14 http://webEbenezer.net |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment