I'm trying to profile my C code with gprof. I'm compiling .a library with -pg option and compiling executable also with -pg and with this .a library.
Running. Getting gmon.out. Viewing it using Eclipse. And all I getting is something like showed at screenshot bellow.
I assume there should be some functions instead those addresses.
Can somebody tell me how to fix it?
Thanks in advance,
- Ilya.
I just checked gmon.out with gprof using command line instead of Eclipse and it appeared that there is no any ?? and 0xaddresses. So I assume that it is some kind of Eclipse viewer issue. Thanks for paying attention to this. I'll also try all tool that you suggested.
Related
I downloaded an Eclipse's extinction for Rust, but then, after creating a new Rust project, i got this problem
I tried to follow some instuctions that I was able to found, including some from this website. I deleted and then downloaded Rust on my computer, I deleted and downloaded Eclipse, same with VS C++ building tools, but all this didn't help. I saw, that for some people helps to just reenter current workspace, but it was not my case. Despite this problem, default code seems to run OK, but it is almost impossible to edit. If someone had this problem or just know how to solve it, can you help please?
P.S. My English probably is not very good, so sorry for mistakes.
This is a known issue. Update to the latest proper TM4E release from https://download.eclipse.org/tm4e/releases/latest/ so that you have the bundle version with this class present.
I'm trying to learn swift language. I have downloaded it for windows 10. Unfortunately, when I tried to run the hello world code (test code), the compiler could not find the file in the workspace even it could not find the workspace folder it self!!!. I tried to change the name of the work-space since it contains a space "My Programs". But, the compiler rejected this change. I have posted with this question some pictures which describe my problem. Any help with this is highly appreciated.
Thank you.
I think that it's not happy with space in between "My" and "Programs". To fix this rename the folder to "My-Programs" and then select the file and again and retry with the new path.
I am having some trouble uploading code to my Seeeduino ADK (essentially a Arduino Mega 2560) using Eclipse. Basically, this thread explains my problem. Sometimes I get a series of timeouts using the Arduino IDE upload, which is usually fixed by removing and re-inserting the USB. Unfortunately enough, this does not help fix the problem in Eclipse.
I have been trying to do the upload using AVRdude via the command line (I even tried the "hacky" solution in the last comment of the above thread), but to no avail. This is the line I am using for this:
"%AVR_DUDE%" -pm2560 -cstk500v2 -P\\.\%COMM_PORT% -b115200 -F -V -D - Uflash:w:"%HEX_FILE%":a -C"%AVR_DUDE_CONF%"
Which gives me:
avrdude.exe: stk500v2_ReceiveMessage(): timeout
I know the above batch variables are OK, because AVRdude runs correctly (but then it times out). If anyone has any ideas or tips that could help me with my uploading I would greatly appreciate it. Thanks beforehand.
EDIT: As it turns out, the reason for this may be that the Arduino IDE sends a reset to the board before uploading, something which the Eclipse AVR plugin does not do. I will test this and write a uploading perl script, but I am fairly certain this is the problem.
Your suspicion is correct. The Arduino IDE uses a patched version of AVRDude to pulse the DTR line and reset the board before each upload. For some reason, some people have had difficulty getting the right command line parameters to replicate this on the Mega2560. I've had the same problem myself - ATMega328's work with no problem, but the 2560 needs to be reset manually.
There's some further explanation and tips for possibly getting it working here (check the comments too): http://false.ekta.is/2011/05/avrdude-5-10-arduino-mega-2560-command-line-uploading/
Check out the detail here... http://false.ekta.is/2011/05/avrdude-5-10-arduino-mega-2560-command-line-uploading/
If using avrdude > version 5.1 change the programmer to -cwiring
This will reset the chip first
This is ideally something simple I've overlooked in the past several hours of searching, but I can't seem to generate any output when including the "link-report" compiler commands in Flash Builder 4.5.
I've tried several different syntaxes that I've seen online:
-linkreport filename.xml
-link-report=filename.xml
-link-report C:\fullpath\filename.xml
-link_report filename.xml
but absolutely nothing gets created when I run, build, or debug the project. =(
Any ideas about what might be causing this? Other application settings perhaps? The project is relatively young and doesn't have many custom settings so I'm thinking it is maybe application or config related?
Thanks for your help!
Use the Flex (mxmlc) compiler from the command-line directly, rather than from Flash Builder (amxmlc if targeting AIR). For example:
${FLEX_HOME}/bin/mxmlc -size-report=$SIZE_REPORT_OUTPUT_PATH -link-report $LINK_REPORT_OUTPUT_PATH -debug=$IS_DEBUG -load-config $FLEX_CONFIG -source-path $SRC_DIR -define=CONFIG::DEBUG,$IS_DEBUG -define=CONFIG::FLASH_AUTHORING,$IS_FLASH_AUTHORING -define=CONFIG::IS_RELEASE,$IS_RELEASE -- ${TARGET_NAME}.as
(where ${VARIABLE} or $VARIABLE are defined, naturally)
-link-report myLinkReport.xml
That works for me in FlashBuilder 4.7
I am working on Box2d application,
my problem is when i move my application's source code from one mac to another mac i got 2349 Errors, i don't know why i am getting this errors.
i even try removing Box2D source from my application from and add again but doesn't work.
if any one know reason and solution please share with me.
Thanks.
Sounds like you are missing some framework. Posting some of the error messages might help us to help you better!
I found solution to my Question.
i got such errors because of change in name of my projects containing folder.
i.e. my working project was at source path /Bubbles/Boxes
on destination mac i changed it to /Bubbles123/Boxes
i changed Bubbles to Bubbles123 that was the problem, it might be creating problem with path.
it works for me now.
Thanks.