I
I
Igor Petrov2011-02-28 18:26:40
C++ / C#
Igor Petrov, 2011-02-28 18:26:40

Assembly code from C++

Hey Habr!
Please advise me how to get "readable" assembler code from a C/C++ program. Given that I use Dev-C ++, all sources are available. I will not violate copyright :-)
I tried to open an already compiled binary in OllyDBG, but the code is too unreadable.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

14 answer(s)
I
Igor Petrov, 2011-02-28
@KriegeR

In general, without waiting for help, I did not waste time :)
If, suddenly, someone needs it ...
Go to the project settings:
Project -> Project settings -> "Settings" tab
In the window of the desired compiler (C or C ++), enter parameter -masm=intel -save-temps -fverbose-asm .
Rebuilding the project. We receive.
image

Y
ykl, 2011-02-28
@ykl

In gcc, the -S switch is used to get the listing in assembler, suddenly someone will need a thread.

P
pel, 2011-10-18
@pel

Search on Habré in blogs for the word " posture ";) There are
many posts on the topic of what happens to the spine , how to sit correctly , how not to sit correctly , and what else you can do to maintain not only posture , but also health in general

K
karazyabko, 2011-10-18
@karazyabko

The chair should be chosen so that it is comfortable for you, so that your legs form a right angle when sitting. In addition, experts also advise getting up every hour for at least a couple of minutes and doing a couple of slopes in four directions. Even easier, if you have a medicine ball in your office, just lie down on it periodically so that the touch point is at the level of the lower back and make circular movements, thereby massaging your back

P
Perez, 2011-10-18
@Perez

The magic word is DYNAMICS. Change your posture more often and you will be happy :). Everything else is from the evil one and furniture manufacturers :)

O
Oleg Barabanov, 2011-10-18
@olegbarabanov

ERGONOMICS + SPORT + WARM-UPS during breaks. Yes, more sex (pleasant and useful).

H
holyorb2, 2011-10-18
@holyorb2

good chair and monitor at eye level

M
mpetrunin, 2011-10-18
@mpetrunin

If you do not feel sorry for the money, then you can take a closer look at the saddle chair . I've been sitting on this chair for almost a month now. Read more about them on this page and this page. To the chair, I also bought a table with a variable height of the tabletop. Now I can work both standing and sitting, while the monitor remains at the same level relative to the eyes. In addition, I bought a desktop computer, so that the keyboard, mouse and monitor are located in different places for me and the monitor is at eye level (before that I sat hunched over chickpeas).
image
I bought all this recently, but already I feel that the back in this combination is really straight. For the rest, I haven’t gotten used to it yet (it’s promised to get used to it within a month), it’s still unusual to sit for a long time in a row. So, to make my life easier, I work alternately either sitting or standing.
I feel the effect: now, after work, sitting on an ordinary stool in the kitchen, my back just wants to return to a straight position.

4
4twilight, 2011-10-18
@4twilight


something like this.

J
Jamon, 2011-10-18
@Jamon

Rock your back, lower your back and sit straight. Everything will be OK)

A
Artyom Zubkov, 2011-10-19
@artzub

We have tables with round cutouts in our office. Tabletops are such that the elbows lie down and do not hang from the corners. The height of the table is adjustable so that when you sit on a chair, your legs do not touch the tabletop.
An office chair with a high curved back, with a rigid spring, so that it doesn’t push too hard and doesn’t let it sag. It is adjusted so that the legs stand almost perpendicular to the floor, slightly bent under the chair, then normal blood circulation in the legs is maintained.
The monitor stands on an adjustable stand so that the center of the screen is in front of the eyes.
Well, the most important thing is the lighting above each place there is a fluorescent lamp and offset lighting is available to everyone in the office.

K
Kotyamba, 2011-10-26
@Kotyamba

habrahabr.ru/blogs/gadgets/123308/

1
1nd1go, 2011-10-26
@1nd1go

The table is an important thing: nesid.livejournal.com/68358.html

O
olekl, 2011-10-27
@olekl

As strange as it may sound, use a large fitness ball instead of a chair. At least sometimes. Since it is almost impossible to sit still on it, constant movements will not allow fatigue to accumulate.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question