Hello Vit,
When I wrote this code, it implied a 32-bits x86 Linux target
with the gcc backend. I didn't update or try with LLVM and the mcode
version is less flexible.
The code was developed for my own projects and detailed in depths
in articles I wrote in french and published in a french paying magazine.
I understand that english documentation would be great but I can't
spend time on this. Honestly at this moment I'm almost starving
and my computer broke yesterday.

Once you get the example code compiled,
play with the code to understand how it works.

Good luck!

Le 2016-06-24 11:57, Vít Fábera a écrit :
Hello,

I asked for some extension of GHDL to use GHDL as a real-time
simulator last month via e-mail to your forum.
I received several answers and I downloaded extension library with C functions

I tried to compile an example (under Linux, of course) using

ghdl -e -Wl,rt_functions.o clk_exemple.

GHDL wrote me that -Wl option does not know.

I listed source codes in ADA and I found out that the test of -Wl is
commented in procedure Decode_Option in ghdlcomp.adb modul:

procedure Decode_Option (Cmd : in out Command_Elab;
                            Option : String;
                            Arg : String;
                            Res : out Option_Res)
   is
   begin
      if Option = "--expect-failure" then
         Flag_Expect_Failure := True;
         Res := Option_Ok;
      elsif Option = "-o" then
         if Arg'Length = 0 then
            Res := Option_Arg_Req;
         else
            --  Silently accepted.
            Res := Option_Arg;
         end if;
      --elsif Option'Length >= 4 and then Option (1 .. 4) = "-Wl," then
      --   Res := Option_Ok;
      else
         Decode_Option (Command_Lib (Cmd), Option, Arg, Res);
      end if;
   end Decode_Option;

I uncommented it and I read source codes of other modules only very
quickly and it seems to me that -Wl -a etc.
options are not implemented. Is it true?

I download 0.33 and 0.34 versions (both binary and source codes).
I tried to install old 0.29 version but I could not run this one.


Thank you for answer

Vit Fabera


_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to