Bugtraq mailing list archives
More about multi-stack allocator.
From: sorlov () CON MCST RU (Serge Orlov)
Date: Wed, 28 Oct 1998 16:12:30 +0300
Hi, I received some questions about multi-stack allocator, here is the answers:
how about performance compare with "canary" and "stack guard"?
Author of StackGuard wrote to me about multi-stack: > Way cool... > ... > Your performance figures are very impressive. StackGuard puts "canaries" into every function (at least in the current version). In contrast multi-stack allocator is used only for local arrays and does not affect functions without local arrays. So if a program spends most of time in functions without arrays, it is even hard to measure slowdown. If a program uses arrays, then the slowdown is about 1%. That is lower than with StackGuard. The main difference is memory. StackGuard almost does not increase memory consumption, while multi-stacked program can use a lot of additional memory. Reread my first post for figures. Fortunately, memory is cheap nowadays.
So how compatible is it? Can it inter-operate with standard shared libraries? Do you just have to re-compile the shared libraries?
You can mix multi-stacked programs and shared libraries in all possible ways. Well, at least on elf-i386-linux, other platforms may need some porting and checking. Shared libraries are also easy to recompile. Just add -fmulti-stack option. Crispin Cowan also noted that the C standard states that automatic variables are to be laid out in sequential memory, although some padding is allowed. OK, I'll add this to "Limitations" paragraph, but I have not seen any programs that depend on layout of automatic variables. Serge Orlov <sorlov () con mcst ru>.
Current thread:
- Printer Sharing and M1CR0S0FT Windows98 enayd () KRYPT COM (Oct 24)
- Re: Printer Sharing and M1CR0S0FT Windows98 Neale Banks (Oct 27)
- Re: Printer Sharing and M1CR0S0FT Windows98 Caskey L. Dickson (Oct 28)
- More about multi-stack allocator. Serge Orlov (Oct 28)
- FW: Security Bulletins Digest Patrick Oonk (Oct 28)
- Javascript bug in Netscape Communicator 4.5 Georgi Guninski (Oct 28)
- Re: Javascript bug in Netscape Communicator 4.5 Willy TARREAU (Oct 29)
- Re: Javascript bug in Netscape Communicator 4.5 Ryan Gray (Oct 29)
- <Possible follow-ups>
- Re: Printer Sharing and M1CR0S0FT Windows98 Paul Leach (Oct 27)
- Re: Printer Sharing and M1CR0S0FT Windows98 Neale Banks (Oct 27)