Hi Andrew
Am Samstag, 29. Juni 2013, 19:09:40 schrieben Sie:
> I have added some runtime checks to the generated
> registerRecordDeviceDriver routine and to iocInit for a few things such as
> whether TOP is the same, but I don't think it's possible to do what you
> want.
>
> We don't know at compile-time that you aren't planning to load the xyz
> module from some other .munch file or lib.so shared library (and although
> I don't particularly recommend it, that is something which Dirk Zimoch
> wants to be able to do).
Ok. I understand that. Loading stuff bit by bit at runtime can be very handy.
> Now I could conceive of some kind of optional way
> to test your binary for completeness(which Dirk would not use), but for
> VxWorks that would require that we know all of the symbols that your
> specific VxWorks boot image provides since those are symbols which are
> supposed to be undefined in your .munch file.
Hmm. I see. I wonder why loading a binary that references undefined symbols is
just a warning and not a fatal error, so the startup script would stop at this
point. Or, is there a way to make it one? (This is actually more a VxWorks
question, not much to do with EPICS).
OTOH, I could imagine doing just what you said: checking for all symbols to be
defined by (additionally) scanning the boot image for symbols. I think we have
the tools available, don't we? Do you think it would be possible to hack
something up and (optionally) add it to our build rules?
> That seems like it might be half-way to us creating a fully bootable image
> file containing both the IOC application code and the VxWorks OS, but I
> don't think that would be quite as easy as it might seem because getting
> initialization right (C++ static initializers for our code) could be
> tricky. Has anyone ever tried to do that?
Not me; but isn't that what we do (by default) for RTEMS?
Cheers
--
Ben Franksen
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachm€nts
________________________________
Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.
Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch, stv. Vorsitzende Dr. Beatrix Vierkorn-Rudolph
Geschäftsführung: Prof. Dr. Anke Rita Kaysser-Pyzalla, Thomas Frederking
Sitz Berlin, AG Charlottenburg, 89 HRB 5583
Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin
http://www.helmholtz-berlin.de
- Replies:
- Re: registerRecordDevice... crashes IOC during startup Andrew Johnson
- References:
- registerRecordDevice... crashes IOC during startup Benjamin Franksen
- Re: registerRecordDevice... crashes IOC during startup Andrew Johnson
- Navigate by Date:
- Prev:
Updating the RDB archiver at the STAR experiment L. C. De Silva
- Next:
Re: registerRecordDevice... crashes IOC during startup Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: registerRecordDevice... crashes IOC during startup Andrew Johnson
- Next:
Re: registerRecordDevice... crashes IOC during startup Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|