Jump to content

File with .0 extension

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
9 replies to this topic

#1
sunsilk10

sunsilk10

    Newbie

  • Members
  • Pip
  • 4 posts
Has anyone come across a file with .0 extension. Apparently this is a file created from a C compiler.
ANy idea how to open/decompile this file?

#2
so1i

so1i

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 312 posts
It seems a .0 file and a .O file are different. I think you are talking about the .O file which is a "Compiled Object File".

This site says a C compiler should run it for you.

#3
manux

manux

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 234 posts
.o Object files are compiled C/C++ source, ready to be linked with other .o's to make a dll/exe/lib...

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Why do you want to open/decompile these?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
sunsilk10

sunsilk10

    Newbie

  • Members
  • Pip
  • 4 posts
I would like to convert the file to a different format i.e. MID/MIF.
The software used to do the coversion does not expose any api to allow me to automate the process, hence I want to convert the file myself if I could,

Any ideas?

#6
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I'm confused. You want to take a file that was compiled and ready to be linked, and decompile it for a different language?

Things that might help:
1) where did you get this .o file?
2) what language was it coded in?
3) what are you trying to do with it (long term goal)?
4) what's a .mid/.mif file?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#7
sunsilk10

sunsilk10

    Newbie

  • Members
  • Pip
  • 4 posts
ok, let me explain:
The .0 file is used by a third party app, which has a functionality to export the data to MID/MIF format. Looking at the file system, there are some .0 files, which presumably get converted to MID/MIF somehow by the app.

I want to automate the process of exporting to MID/MIF to run every night.
Unfortunatelt, the app does not expose any API to allow me to automate this process. Hence, I am looking at the option of converting the .0 file. This is in a binary format. I want to convert to a text format, which I can rewrite to any format I like.

MID/MIF contain data in human readable (text) format, which can be read by a different app. e.g. MapInfo.

#8
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Option 1) If the program can be called via commandline, you could write a batch file to do the conversion.
Option 2) Go through the unpleasant task of reverse-engineering the file format, so you can write your own utility to do the conversion.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#9
sunsilk10

sunsilk10

    Newbie

  • Members
  • Pip
  • 4 posts
Thanks for the reply. I will find out if option 1) is possible.
Regarding option 2), any suggestions what I could use to reverse engineer the compiled file?

#10
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
It tends to involve making very small changes to what it does, and seeing what changed. Then you make another small change, and see how the file changed. It's not fun, fast, or easy.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog