View Full Version : Re: 32 plugins to - 64 bits
vcmohan
17th October 2010, 04:07
I am under impression that plugins compiled for 32 bit systems work on 64 bit systems, as the 64 bit OS has the compatability. However I have got a request to make my plugins for 64 bit system. Since I do not have a 64 bit system, is there facility to recompile my source (or any one's source) as 64 bit systems. Otherwise I need to migrate to windows 7 and a visual studio compiler for C++, but that is expensive.
mariush
17th October 2010, 04:11
A 32 bit plugin will work on a 64bit OS if the application loading it is also 32 bit.
Here's making it simple
32 bit OS - 32 bit App - 32 bit plugin OK
64 bit OS - 32 bit App - 32 bit plugin OK
64 bit OS - 64 bit App - 32 bit plugin FAIL
64 bit OS - 64 bit App - 64 bit plugin OK
So people want a 64 bit plugin because they probably want to use the 64bit Avisynth, usually to use more than 4 GB of memory in a script.
Manao
17th October 2010, 07:36
usually to use more than 4 GB of memory in a script. Not really. One rarely needs that much memory for avisynth. The reason is often because they want to use the 64bits version of the calling application, which is likely to be faster than its 32bits counterpart. For example, x264 64bits is ~10% faster than x264 32bits. (I know it's possible to use x264 64bits with avisynth 32bits by using a pipe, but you'll agree it's more cumbersome than having everything 64bits).
vcmohan : you can build 64bits plugins with professional versions of MSVC, even on a 32bits OS. And I haven't tested MSVC 2010 express, but perhaps they finally allowed 64bits compilation on 32bits OS. What you can't do is test them. What you can do is install virtualbox, and install a demo version of windows 7 64bits in it. It'll only work for a month, but that will be enough for you to find out any bug that would arise due to 64bits compilation.
wonkey_monkey
17th October 2010, 10:41
What you can't do is test them. What you can do is install virtualbox, and install a demo version of windows 7 64bits in it.
Don't you need a 64 bit system to do that?
David
Manao
18th October 2010, 07:19
Don't you need a 64 bit system to do that?I would have thought you didn't need one, but after checking, it does seem that virtualbox requires a 64bits-capable CPU. The host system, however, can still be 32bits. So if mohan's CPU isn't too old, it should do.
burfadel
18th October 2010, 10:02
Not really. One rarely needs that much memory for avisynth. The reason is often because they want to use the 64bits version of the calling application, which is likely to be faster than its 32bits counterpart. For example, x264 64bits is ~10% faster than x264 32bits. (I know it's possible to use x264 64bits with avisynth 32bits by using a pipe, but you'll agree it's more cumbersome than having everything 64bits).
The approximate 10 percent doesn't sound much, but it is impressive when you consider that x264 doesn't really have 64 bit optimisations. The real figure, if optimisations were available, would probably be more in the order of 30 to 40 percent?...
dansrfe
18th October 2010, 10:05
Who says it doesn't have 64-bit optimizations? There is a 64-bit x264 for the very reason of addressing 64-bit optimizations. That's why all of us on x64 systems should ideally be piping to x264 x64 if we're using AviSynth x86.
vcmohan
20th October 2010, 03:37
Thanks for all the suggestions. What I am really looking for or hoping availability with avisynth.org a facility to compile the plugins coded in C++ in 64bit mode. Since the code is debugged and works in 32 bit systems, I presume that there will be no further need to debug. May be if not with avisynth.org somewhere else such a service available?
trevaaar
21st October 2010, 16:52
Recompiling straight C/C++ for x64 is pretty easy, I could do it for you if you'd like. It gets considerably harder if there's any ASM since it needs to be updated and I don't know it well enough to do that.
vcmohan
23rd October 2010, 04:11
Trevaaar Thanks. I do not have any ASM in my plugins. I got several requests for 64 bit version for my TransAll plugin. If you can download the source and compile it I will keep it in the page with the rest of my plugins. I may request your help for other plugins if there is a sustained demand for them.
cweb
20th February 2011, 13:22
Has there been an update on a 64 bit transall, I mean has anyone done this yet?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.