[Vm-dev] Building OSVM in Windows 11 and Cygwin64 ...

Jakob Reschke jakres+squeak at gmail.com
Fri Dec 30 22:51:09 UTC 2022


That's why (quoted from the doc page):

Unlike _alloca, which doesn't require or permit a call to free to free the
memory so allocated, _malloca requires the use of _freea
<https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/freea?view=msvc-170>
to
free memory.


Am Fr., 30. Dez. 2022 um 23:07 Uhr schrieb Eliot Miranda <
eliot.miranda at gmail.com>:

>
>
>
> On Mon, Dec 19, 2022 at 9:29 AM Ron Teitelbaum <ron at usmedrec.com> wrote:
>
>>
>> Just saw this:
>>
>> https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/alloca?view=msvc-170
>>
>> _alloca
>>
>> Article
>> 10/26/2022
>>
>> Allocates memory on the stack. This function is *deprecated* because a
>> more secure version is available; see:
>>
>>  _malloca
>> <https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/malloca?view=msvc-170>
>> .
>>
>
> Mucroshaft are such irritating *FUCKS*.  It has exactly the same signature
> as alloca.  Why didn't they just upgrade the implementation instead of
> forcing everyone to rewrite their code??
>
>>
>>
>>
>> https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/malloca?view=msvc-170
>>
>> Requirements
>>
>> RoutineRequired header
>> _malloca<malloc.h>
>>
>> All the best,
>>
>> Ron Teitelbaum
>>
>>
>> On Mon, Dec 19, 2022 at 12:00 PM Marcel Taeumel <marcel.taeumel at hpi.de>
>> wrote:
>>
>>>
>>> Hi all!
>>>
>>> Has anybody tried to build OSVM in Windows 11 via Cygwin64?
>>>
>>> clang-8 does not work because "_alloca" cannot be found ... hmm...
>>>
>>>
>>> So, who implements _alloca? It's not msvcrt.dll ... how to find that out?
>>>
>>> Best,
>>> Marcel
>>>
>>
>
> --
> _,,,^..^,,,_
> best, Eliot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20221230/0160bdb9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 31608 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20221230/0160bdb9/attachment-0001.png>


More information about the Vm-dev mailing list