public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Biswapriyo Nath <nathbappai@gmail.com>
To: cygwin@cygwin.com
Subject: Function call difference between cygwin and Windows
Date: Fri, 19 Jul 2019 08:23:00 -0000	[thread overview]
Message-ID: <CALK-3mLHN3sVi5JRqsuiarkpsD5f_LLDHdSMQwR_wDpZ7nXwPw@mail.gmail.com> (raw)

If a function calls both cygwin and Windows functions the binary creates
extra subroutine (in assembly) for cygwin ones. Example:

* Windows function:

   call cs:CreatePipe

* cygwin function:

   call ioctl

   ioctl proc near
   jmp cs:__imp_ioctl
   endp

The binary is statically compiled. Why there are extra subroutines? Is this
"by-design"? Or am I missing something?

--
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

             reply	other threads:[~2019-07-19  8:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-19  8:23 Biswapriyo Nath [this message]
2019-07-19 12:45 ` Václav Haisman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALK-3mLHN3sVi5JRqsuiarkpsD5f_LLDHdSMQwR_wDpZ7nXwPw@mail.gmail.com \
    --to=nathbappai@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).