From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sudheer Vutukuru Subject: sequence of steps that goes from compilation to execution Date: Wed, 18 Aug 2004 01:04:51 +0530 Sender: linux-c-programming-owner@vger.kernel.org Message-ID: <55ee29e004081712346075d5b4@mail.gmail.com> Reply-To: Sudheer Vutukuru Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-c-programming@vger.kernel.org Hi all, Why a program which is compiled on linux does not execute on windows.. (though the machine architecture is same).. Also Can u please suggest me references or help me in knowing the details of what goes on, from compilation to execution (i.e how loading,linking libraries is done.. how addresses are known dynamically etc.. ). for string literals whether memory is allocated in heap or in code segment only.. i.e char* ptr = "Hello World"; the ptr points into code segement or heap.. Thanks, *************************************************************************** V V N Sudheer, Master of Technology, Dept. of Computer Science, IIT Kanpur. ***************************************************************************