www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/10/23:20:31

Message-Id: <9802110419.AA00315@gcef.gc.maricopa.edu>
Date: Tue, 10 Feb 1998 21:19:47 -0700 (MST)
From: "Joshua James Turpen" <44699 AT ef DOT gc DOT maricopa DOT edu>
To: djgpp AT delorie DOT com
Subject: Fun with DXEs

Is there a way to create a DXE that has it's own private copies of the
libc functions that it uses?   For example, if I make a DXE that has:

#include <stdio.h>

void dxeMain(void)
{
          printf("This is a test\n");
}



Is there a way to link it so that the DXE has it's own private copy of printf?

The only way I know how to do this now is to pass a function pointer to
dxeMain that points to the printf function and call the function pointer,
but it's not a very pretty solution.


Josh
44699 AT ef DOT gc DOT maricopa DOT edu

- Raw text -


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