X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.6 required=5.0 tests=BAYES_05,FREEMAIL_FROM,LIBERO,TW_BJ,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <30701760.post@talk.nabble.com> Date: Tue, 18 Jan 2011 08:47:05 -0800 (PST) From: lellone88 To: cygwin AT cygwin DOT com Subject: to generate disassemble blink code MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com dear users, I'm an italian student. I'm working on my thesis, and I have to use cygwin for some reasons... My thesis work consists in fault injections in the Liteos application codes. so, my problem is: I have the application's code (the application's name is Blink), saved in a text file, under .c extension. first step: I have to compile this code to generate an executable file (with .exe extension, or .elf extension in Linux environment). second step: with this executable file, I must generate the disassembleted code with the avr-objdump utility. in the second step, I don't have any trouble, because, I just write the following istruction in the cygwin shell: avr-objdump -zhD blink.elf > blink.od so, the disassembleted code has been saved in the text file with .od extension. but the first step, it's a problem for me, because, cygwin doesn't compile the code! I post you the blink code in the next lines: #include "leds.h" #include "thread.h" #include "adc.h" #include "radio.h" #include "serial.h" #include "file.h" #include "system.h" int main() { uint8_t index; __asm__ __volatile__("sei" ::); //for (index = 0;index <100;index++) while(1) { greenToggle(); sleepThread(1000); } return 0; } I launch this istruction, to compile this code: avr-gcc -o executablefile.elf(or.exe) blink.c and the terminal return me this application has requested the runtime to terminate it in an unusual way.please contact the application-s support team for more information. could you give me any suggestions to resolve this problem? hel me please... thanks in advance, and please sorry, for my not perfect english. lellone -- View this message in context: http://old.nabble.com/to-generate-disassemble-blink-code-tp30701760p30701760.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple