X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,TW_BJ,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org X-Yahoo-SMTP: jenXL62swBAWhMTL3wnej93oaS0ClBQOAKs8jbEbx_o- Date: Tue, 8 Feb 2011 11:56:48 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Language interface template request Message-ID: <20110208165648.GB26072@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20110209000607 DOT 2768 AT binki> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110209000607.2768@binki> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Wed, Feb 09, 2011 at 12:06:07AM +0900, wynfield AT gmail DOT com wrote: >I want to write a small assembly language routine to do some heavy bit >slogging and interface it to a C language program. > >Does anybody have any templates to show how this should be done. > >Stack control & variable definitions for linking. This is hardly a cygwin-specific request. You'll undoubtedly have better luck in some other forum or, more likely, with some google searching. As a hint, I'd suggest just disassembling an existing program with gdb or objdump --disassemble and taking hints from there. cgf -- 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