www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/22/15:11:40

Xref: news-dnh.mv.net comp.os.msdos.djgpp:3387
Path: news-dnh.mv.net!mv!news.sprintlink.net!news.heurikon.com!daffy!uwvax!fullfeed!tricia!pendragon.jsc.nasa.gov!news.msfc.nasa.gov!newsfeed.internetmci.com!howland.reston.ans.net!Germany.EU.net!Dortmund.Germany.EU.net!nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!wmwap1.math.uni-wuppertal.de!schoenep
From: schoenep AT wrcs1 DOT urz DOT uni-wuppertal DOT DE (Van Schoenepauck)
Newsgroups: comp.os.msdos.djgpp
Subject: Q: Object files from binary data - how?
Date: 22 Nov 1995 00:18:29 GMT
Organization: University of Wuppertal
Lines: 16
Nntp-Posting-Host: wrcs3.urz.uni-wuppertal.de
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Hello all,
I want to create an object file from a simple binary data
file that can then be linked into a DJGPP C program such that the data
can then be referred to by a symbol name from within the C code,
instead of loading the data at runtime.
I am working with a large color table that needs quite some time
to compute, so I precalculated it and saved it as binary data, and
my idea is to make an object file from it, making it possible
to access the data by declaring it extern colortable[] and including
the data at link time. Is this possible? (I know there are tools that
do exactly this for Borland C, but DJGPP has a different object format.)

Thanks in advance,

Jan (schoenep AT wrcs3 DOT urz DOT uni-wuppertal DOT de)

- Raw text -


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