Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Question about technical term and use of external programs by Stata


From   "Sergiy Radyakin" <[email protected]>
To   [email protected]
Subject   Re: st: Question about technical term and use of external programs by Stata
Date   Tue, 11 Mar 2008 17:44:49 -0400

1. C wrapper is not necessary. The procedures, revealed to plugins,
can be called directly from [Fortran | Pascal | Basic | Assembler |
....] code.

2. Note also that besides platform, there is another dimension of
"portability", namely 32-bit/64-bit. 32-bit plugins may NOT be
plugged-in to 64-bit Stata and must be recompiled in proper mode. Even
though you may have source code available, there might be [yet] no
compiler to produce 64-bit code on a particular platform. So try MATA
first.

Best regards,
    Sergiy


On 3/11/08, Tom Trikalinos <[email protected]> wrote:
> _plugin_ is the term.
> see
> http://www.stata.com/plugins/
>
> in my limited experience (I've written only a handful for personal
> use) preferred language for plugins is C/C++  and if you want to use
> fortran code you have to write a C wrapper. easier than it sounds
> though.
>
> hth
> tom
>
>
> On Tue, Mar 11, 2008 at 3:42 PM,  <[email protected]> wrote:
> > Dear All,
> >
> >  Would it be possible to you to provide me the technical term (the problem
> >  here is the English) of the process by which Stata calls another program,
> >  which, in turn, does all calculations and sends results back to Stata?
> >
> >  I just have written a program that I think it will be very useful to other
> >  Stata users. Nonetheless, since the current Stata programming does not
> >  support very well "heavy", exact tests, for some calculations Stata calls
> >  a fortran program do to the task. Is this an elegant way to do something
> >  in Stata that cannot be done in terms of standard Stata programming? The
> >  program in a .exe file renamed to .ado. The source code is available for
> >  Unix users. Hence, I would like to know your previous experience with this
> >  kind of stuff as well as if there is a problem in making that program ( a
> >  .exe masked as .ado) available?
> >
> >  All the best,
> >
> >  Tiago
> >  *
> >  *   For searches and help try:
> >  *   http://www.stata.com/support/faqs/res/findit.html
> >  *   http://www.stata.com/support/statalist/faq
> >  *   http://www.ats.ucla.edu/stat/stata/
> >
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index