Compile and link huge ASM program

Hi guys, I have a huge program, about 500K code in size (with comments). Are there any ASM compilers and linkers which can handle such a size? Output binary code is not expected to exceed 32KiB. Splitting into smaller chunks is not desirable as there're a lot of interlinks. Any suggestions?