Search:

Type: Posts; User: TheEngineer

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,795

    My latest thoughts are to use Objective-C code to...

    My latest thoughts are to use Objective-C code to write a class that could open the testfile as well as pass the other arguments to the program at run time rather than compile time. Does anyone have...
  2. Replies
    7
    Views
    1,795

    The problem I run in to is that the test file...

    The problem I run in to is that the test file (which is now an executable) needs to be an argument to the main program. For instance, the Main program takes arguments of a testfile, input file, etc....
  3. Replies
    7
    Views
    1,795

    Yes I could read the files, but like you said the...

    Yes I could read the files, but like you said the code is machine specific. Since the i686 creates .o files when it compiles a program, I figured that was the way to go.

    The files were originally...
  4. Replies
    7
    Views
    1,795

    Would the dlopen() command work if the file was...

    Would the dlopen() command work if the file was converted to a lib file?
  5. Replies
    7
    Views
    1,795

    Dynamically load obj file at runtime?

    I have an exe program that requires several arguments to be passed to it, including a test file, input/output file, errorfile, print level, etc. They are passed to the executable by using an .rc...
  6. Replies
    14
    Views
    7,240

    Thanks, I'll look into it some more

    Thanks, I'll look into it some more
  7. Replies
    14
    Views
    7,240

    Doing objdump on working files shows that the...

    Doing objdump on working files shows that the files are of the same form.

    I do have __attribute__ syntax, of the following form:


    __attribute__ ((section ("GPARMS"))) struct ConfigTableType...
  8. Replies
    14
    Views
    7,240

    Hmm...I seem to be able to compile other programs...

    Hmm...I seem to be able to compile other programs though. I suppose I will try to find and install the latest version of binutils?
  9. Replies
    14
    Views
    7,240

    Is there a better form for the makefile? I just...

    Is there a better form for the makefile? I just used a template sort of thing.

    What info (flags) do you want to see from the objdump? Here's the output from objdump -s Esx.o:



    $ objdump -s...
  10. Replies
    14
    Views
    7,240

    Here is the Makefile I am using: ...

    Here is the Makefile I am using:



    bin_PROGRAMS = Ddx


    SOURCE_DIR = $(top_srcdir)
    SOURCE_INCLUDE_DIR = $(SOURCE_DIR)/../../include
    SOURCE_COMMON_DIR =...
  11. Replies
    14
    Views
    7,240

    I can, but it is 650+ lines. For now I am just...

    I can, but it is 650+ lines. For now I am just trying to narrow down the source of the error, looking for possible causes
  12. Replies
    14
    Views
    7,240

    Assertion Fail error

    Trying to compile a program with 2 source files and several headers, get the following error when I try to make:


    /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: BFD (GNU Bi...
  13. Replies
    9
    Views
    2,862

    This was it, had to move the comment. Thanks!

    This was it, had to move the comment. Thanks!
  14. Replies
    9
    Views
    2,862

    Hmmm...doesn't seem to make a difference. I still...

    Hmmm...doesn't seem to make a difference. I still keep getting the error about the line with "})"

    Also, I have several other commands like this in the file that do not cause errors. For instance,...
  15. Replies
    9
    Views
    2,862

    Like this?: #define REG_AP(mr,reg_flag) \ ...

    Like this?:


    #define REG_AP(mr,reg_flag) \
    ({ \
    reg_flag \
    __asm__ ("pushl %0\n" :"=m"(*mr)); \ /*pushes null onto stack */
    __asm__ ("call 0x8000\n"); \
    })
  16. Replies
    9
    Views
    2,862

    a)It is called using the REG_AP() function in the...

    a)It is called using the REG_AP() function in the main c file
    b) gcc
  17. Replies
    9
    Views
    2,862

    Inline assembly error

    I have the following snippet of inline assembly code in my ConstHeader.h file:



    #define REG_AP(mr,reg_flag) \
    ({ \
    reg_flag \
    __asm__ ("pushl %0\n" :"=m"(*mr));
    __asm__ ("call ...
  18. Replies
    10
    Views
    5,297

    It compiles the way it is, with the "%". I...

    It compiles the way it is, with the "%".


    I can't seem to locate the function, but I know it is from a separate input file. It seems as though I need direct access to the stack and to the...
  19. Replies
    10
    Views
    5,297

    That is the m68k version with all the other crap...

    That is the m68k version with all the other crap deleted. It seems to cross-compile correctly. What I am trying to get around is rewriting it for the x86 by writing it in C.

    Really, all this XPrc...
  20. Replies
    10
    Views
    5,297

    Sorry, I didn't explain that well. MULTI uses...

    Sorry, I didn't explain that well. MULTI uses some different instructions for its assembly files that aren't used in regular m68k assembly.

    Converting to C sounds like it would relieve a lot of...
  21. Replies
    10
    Views
    5,297

    The assembly file was written with Green Hills...

    The assembly file was written with Green Hills MULTI, and isn't compatible with either the m68k or the x86 through GNU. That is to say it was written for the m68k but has program-specific functions...
  22. Replies
    10
    Views
    5,297

    Cross compiling with inline assembly

    I have a C file and an assembly file for a program that I need to compile for both the x86 and m68k processors. Instead of making 2 versions of the assembly file, will it work if I write it inline in...
  23. Here is the output now when I try to make: ...

    Here is the output now when I try to make:


    ../ProgramMain.c: In function `main':
    ../ProgramMain.c:224: warning: passing arg 2 of `LoadTestProgram' makes pointer from
    integer without a cast...
  24. When I removed it I got some errors while...

    When I removed it I got some errors while compiling, which seems like progress. Thanks for the suggestion
  25. I realize that the m68k makefile would not work...

    I realize that the m68k makefile would not work on the i686, and I made all changes that I thought were necessary. Earlier you mentioned something about the path to the linker script and I was just...
Results 1 to 25 of 50
Page 1 of 2 1 2