delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/25/16:52:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <4.3.1.2.20020325164805.02361a90@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
Date: Mon, 25 Mar 2002 16:50:31 -0500
To: "Wirawan Purwanto" <wirawan AT camelot DOT physics DOT wm DOT edu>, <cygwin AT cygwin DOT com>
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: Strange behavior of MSVC's printf under cygwin shell?
In-Reply-To: <LAW2-OE53WO6hm8Ua8d000018b3@hotmail.com>
Mime-Version: 1.0

At 04:38 PM 3/25/2002, Wirawan Purwanto wrote:
>Hi,
>
>Why does the screen output displayed using MSVC's printf subroutine not get
>shown immediately under Cygwin shell (bash, specifically)? Rather, it would
>wait for a long time before showing the text lines (many lines at once). How
>to change this behavior?
>
>I used the following (simple) code as an example:
>
>#include<stdio.h>
>int main() {
>     for (int i=0; i < 50; ++i) {
>         printf("%d %d\n", i, i*i);
>         for (int j=0; j < 10000000; ++j); /* just for delay */
>     }
>     return 0;
>}
>
>Try to compile it using: gcc -mno-cygwin sample.c , then run it: ./a.exe. If
>you remove "-mno-cygwin", this strange behavior disappears. Under MS-DOS
>shell, this behavior does not exist.



The problem must be at your end.  I don't see it here.  Looks like you'll
need to debug it more.



Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019